diff --git a/utils.go b/utils.go index 13bda9c..2f9f9a2 100644 --- a/utils.go +++ b/utils.go @@ -18,7 +18,7 @@ func addValue2InterfaceMap[K, T comparable](m map[K]interface{}, key K, value T) } func addSlice2InterfaceMap[K, T comparable](m map[K]interface{}, key K, value []T) { - if value != nil && len(value) > 0 { + if len(value) > 0 { m[key] = value } }