fixed issue #1295 by making chavacava's suggestion (#1304)

* fixed issue 1295 by making chavacava's suggestion & ran tests

* removed outer if statement as wasn't checking anything
pull/1306/head
olcuhu 2 years ago committed by GitHub
parent 3b8379f081
commit 9660e7842d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -264,14 +264,8 @@ func TestGetKubernetesURL(t *testing.T) {
}
k8sURL := getKubernetesURL()
if !c.useDefault {
if k8sURL != c.expected {
t.Errorf("Expected %q but Got %q", k8sURL, c.expected)
}
} else {
if k8sURL != c.expected {
t.Errorf("Expected %q but Got %q", k8sURL, c.expected)
}
if k8sURL != c.expected {
t.Errorf("Expected %q but Got %q", k8sURL, c.expected)
}
})
}

Loading…
Cancel
Save