Skip to content

Commit

Permalink
chore: omit comparison to bool constant
Browse files Browse the repository at this point in the history
  • Loading branch information
yongruilin committed Nov 25, 2024
1 parent dc61957 commit c5a1d56
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 c5a1d56

Please sign in to comment.