diff --git a/maputils/mapUtils.go b/maputils/mapUtils.go index 8177dd1..a9db4d5 100644 --- a/maputils/mapUtils.go +++ b/maputils/mapUtils.go @@ -65,7 +65,7 @@ func CompareMap[K, V comparable](a, b map[K]V) bool { // Then compare key-value pairs for k, v := range a { val, ok := b[k] - if !(ok && val == v) { + if !ok || val != v { return false } }