mirror of
https://github.com/ahmetb/kubectx.git
synced 2025-06-26 23:36:48 +00:00
fix compile error
Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
This commit is contained in:
parent
4bbe0fad79
commit
52bbf5c786
@ -8,7 +8,6 @@ import (
|
||||
"os/exec"
|
||||
"strings"
|
||||
|
||||
"github.com/fatih/color"
|
||||
"github.com/pkg/errors"
|
||||
|
||||
"github.com/ahmetb/kubectx/internal/cmdutil"
|
||||
@ -39,7 +38,6 @@ func (op ListOp) Run(stdout, stderr io.Writer) error {
|
||||
return errors.Wrap(err, "could not list namespaces (is the cluster accessible?)")
|
||||
}
|
||||
|
||||
|
||||
for _, c := range ns {
|
||||
s := c
|
||||
if c == curNs {
|
||||
@ -59,9 +57,9 @@ func findKubectl() (string, error) {
|
||||
}
|
||||
|
||||
func queryNamespaces() ([]string, error) {
|
||||
kubectl ,err := findKubectl()
|
||||
kubectl, err := findKubectl()
|
||||
if err != nil {
|
||||
return nil ,err
|
||||
return nil, err
|
||||
}
|
||||
|
||||
// TODO add a log message to user if kubectl is taking >1s
|
||||
|
Loading…
Reference in New Issue
Block a user