Skip to content

Commit

Permalink
Merge pull request #274 from yongruilin/bool-comparison
Browse files Browse the repository at this point in the history
chore: omit comparison to bool constant
  • Loading branch information
k8s-ci-robot authored Dec 11, 2024
2 parents 40c8ef9 + c5a1d56 commit 7bf59b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion value/scalar.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ func IntCompare(lhs, rhs int64) int {
func BoolCompare(lhs, rhs bool) int {
if lhs == rhs {
return 0
} else if lhs == false {
} else if !lhs {
return -1
}
return 1
Expand Down

0 comments on commit 7bf59b3

Please sign in to comment.