From c5a1d565be8efeaa80f474e78381730f18dc56ba Mon Sep 17 00:00:00 2001 From: yongruilin Date: Mon, 25 Nov 2024 12:56:20 -0800 Subject: [PATCH] chore: omit comparison to bool constant --- value/scalar.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/value/scalar.go b/value/scalar.go index c78a4c18..5824219e 100644 --- a/value/scalar.go +++ b/value/scalar.go @@ -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