lint
This commit is contained in:
@@ -60,7 +60,10 @@ func (this KubeContext) GetContext() (string, string, string, error) {
|
||||
|
||||
var objmap kubeConfig
|
||||
|
||||
json.Unmarshal(stdout, &objmap)
|
||||
err := json.Unmarshal(stdout, &objmap)
|
||||
if err != nil {
|
||||
return "", "", "", err
|
||||
}
|
||||
currentContext := objmap.CurrentContext
|
||||
|
||||
currentCluster := ""
|
||||
|
Reference in New Issue
Block a user