Skip to content

Commit

Permalink
GetClusterOperatorsStatus callers don't check for nil
Browse files Browse the repository at this point in the history
This ensures they will never panic due to a nil pointer.
  • Loading branch information
guillaumerose committed Nov 5, 2020
1 parent 0a8f5ea commit ec64614
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/crc/cluster/clusteroperator.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ func getStatus(ocConfig oc.Config, selector []string) (*Status, error) {
}
}
if !found {
return nil, errors.New("no cluster operator found")
return cs, errors.New("no cluster operator found")
}
return cs, nil
}
Expand Down

0 comments on commit ec64614

Please sign in to comment.