Skip to content

Commit

Permalink
fix sanity failure
Browse files Browse the repository at this point in the history
Signed-off-by: everettraven <everettraven@gmail.com>
  • Loading branch information
everettraven committed Jan 25, 2024
1 parent d013ad4 commit 04c111b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/cmd/helm-operator/run/cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ func getWatchNamespaces(namespaces map[string]cache.Config) []string {
log.Info("Watching single namespace.")
return []string{namespace}
}
if namespaces == nil || len(namespaces) == 0 {
if len(namespaces) == 0 {
log.Info(fmt.Sprintf("Watch namespaces not configured by environment variable %s or file. "+
"Watching all namespaces.", k8sutil.WatchNamespaceEnvVar))
return []string{metav1.NamespaceAll}
Expand Down

0 comments on commit 04c111b

Please sign in to comment.