From 85cfd4e518c7bf1349dc3f8c1d61a0e1f89d4cb7 Mon Sep 17 00:00:00 2001 From: Silvin Lubecki Date: Tue, 2 Apr 2019 11:22:06 +0200 Subject: [PATCH] cli/command/stack/kubernetes/list.go:32:47: nilness: tautological condition: non-nil != nil (govet) Signed-off-by: Silvin Lubecki --- cli/command/stack/kubernetes/list.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli/command/stack/kubernetes/list.go b/cli/command/stack/kubernetes/list.go index 9706f4be56..facd401bb9 100644 --- a/cli/command/stack/kubernetes/list.go +++ b/cli/command/stack/kubernetes/list.go @@ -29,7 +29,7 @@ func GetStacks(kubeCli *KubeCli, opts options.List) ([]*formatter.Stack, error) } 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) {