From 1342676dc4bff028064fe9ea7c424f9fc26a511a Mon Sep 17 00:00:00 2001 From: Adrien CABARBAYE Date: Mon, 13 Jan 2025 13:52:43 +0000 Subject: [PATCH] linting --- utils/collection/conditions.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/collection/conditions.go b/utils/collection/conditions.go index eb26bc1cd5..1df8b8b93c 100644 --- a/utils/collection/conditions.go +++ b/utils/collection/conditions.go @@ -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