removed lint warning

This commit is contained in:
milarin 2023-10-09 13:49:37 +02:00
parent e6183ddfa3
commit bfc0e5c417

View File

@ -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) { 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 m[key] = value
} }
} }