Skip to content

Commit 7bf59b3

Browse files
authored
Merge pull request #274 from yongruilin/bool-comparison
chore: omit comparison to bool constant
2 parents 40c8ef9 + c5a1d56 commit 7bf59b3

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)