Skip to content

Commit

Permalink
linting
Browse files Browse the repository at this point in the history
  • Loading branch information
acabarbaye committed Jan 13, 2025
1 parent bf20f92 commit 1342676
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/collection/conditions.go
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ func Or(values ...bool) bool {

// Xor performs a `xor` on an array of booleans. This behaves like an XOR gate; it returns true if the number of true values is odd, and false if the number of true values is zero or even.
func Xor(values ...bool) bool {
if len(values) <= 0 {
if len(values) == 0 {
return false
}
// false if the neutral element of the xor operator
Expand Down

0 comments on commit 1342676

Please sign in to comment.