diff --git a/lib/misc/misc.go b/lib/misc/misc.go index d95f253..7914187 100644 --- a/lib/misc/misc.go +++ b/lib/misc/misc.go @@ -22,7 +22,7 @@ func RemoveDuplicateElement[T any](slice []T, elems ...T) []T { var result []T slice = append(slice, elems...) for _, val := range slice { - if IsDuplicate(result, val) == false { + if !IsDuplicate(result, val) { result = append(result, val) } }