From bfc0e5c417f9f92776a5d0fae818f040dccf9636 Mon Sep 17 00:00:00 2001 From: milarin Date: Mon, 9 Oct 2023 13:49:37 +0200 Subject: [PATCH] removed lint warning --- utils.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 } }