Extend CI workflow with gofmt

Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
This commit is contained in:
Ahmet Alp Balkan
2020-04-29 13:26:41 -07:00
parent 3c9c44842c
commit 7f3f0699b3
9 changed files with 17 additions and 52 deletions

View File

@@ -88,4 +88,3 @@ func Test_kubectxFilePath_error(t *testing.T) {
t.Fatal(err)
}
}

View File

@@ -51,7 +51,7 @@ func (op ListOp) Run(stdout, stderr io.Writer) error {
func queryNamespaces(kc *kubeconfig.Kubeconfig) ([]string, error) {
if os.Getenv("_MOCK_NAMESPACES") != "" {
return []string{"ns1","ns2"}, nil
return []string{"ns1", "ns2"}, nil
}
b, err := kc.Bytes()

View File

@@ -74,7 +74,6 @@ func switchNamespace(kc *kubeconfig.Kubeconfig, ns string) (string, error) {
return ns, nil
}
func namespaceExists(kc *kubeconfig.Kubeconfig, ns string) (bool, error) {
nses, err := queryNamespaces(kc)
if err != nil {