removed lint warning
This commit is contained in:
parent
e6183ddfa3
commit
bfc0e5c417
2
utils.go
2
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) {
|
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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user