cli/command/stack/kubernetes/list.go:32:47: nilness: tautological condition: non-nil != nil (govet)

Signed-off-by: Silvin Lubecki <silvin.lubecki@docker.com>
This commit is contained in:
Silvin Lubecki 2019-04-02 11:22:06 +02:00 committed by Sebastiaan van Stijn
parent f5e8387067
commit 85cfd4e518
No known key found for this signature in database
GPG Key ID: 76698F39D527CE8C
1 changed files with 1 additions and 1 deletions

View File

@ -29,7 +29,7 @@ func GetStacks(kubeCli *KubeCli, opts options.List) ([]*formatter.Stack, error)
} }
func isAllNamespacesDisabled(kubeCliConfig *configfile.KubernetesConfig) bool { func isAllNamespacesDisabled(kubeCliConfig *configfile.KubernetesConfig) bool {
return kubeCliConfig == nil || kubeCliConfig != nil && kubeCliConfig.AllNamespaces != "disabled" return kubeCliConfig == nil || kubeCliConfig.AllNamespaces != "disabled"
} }
func getStacks(kubeCli *KubeCli, opts options.List) ([]*formatter.Stack, error) { func getStacks(kubeCli *KubeCli, opts options.List) ([]*formatter.Stack, error) {