Skip to content

Commit

Permalink
add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
kevin85421 committed Jun 2, 2023
1 parent ecba427 commit f209400
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ray-operator/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ func main() {
LeaderElectionID: "ray-operator-leader",
}

if len(watchNamespaces) == 1 {
if len(watchNamespaces) == 1 { // It is not possible for len(watchNamespaces) == 0 to be true. The length of `strings.Split("", ",")`` is still 1.
options.Namespace = watchNamespaces[0]
if watchNamespaces[0] == "" {
setupLog.Info("Flag watchNamespace is not set. Watch custom resources in all namespaces.")
Expand Down

0 comments on commit f209400

Please sign in to comment.