Skip to content

Commit c5a1d56

Browse files
committed
chore: omit comparison to bool constant
1 parent dc61957 commit c5a1d56

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

value/scalar.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ func IntCompare(lhs, rhs int64) int {
4343
func BoolCompare(lhs, rhs bool) int {
4444
if lhs == rhs {
4545
return 0
46-
} else if lhs == false {
46+
} else if !lhs {
4747
return -1
4848
}
4949
return 1

0 commit comments

Comments
 (0)