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
This commit is contained in:
olcuhu
2022-10-13 15:17:13 +01:00
committed by GitHub
parent 3b8379f081
commit 9660e7842d

View File

@@ -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)
}
})
}