From ee0e787ce373f65c5354b45a9f18742f9f6165d3 Mon Sep 17 00:00:00 2001 From: Techno Freak Date: Fri, 3 Jun 2022 01:57:57 +0300 Subject: [PATCH] chore: make linters happy --- utils.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils.go b/utils.go index ae3e541..eb411a9 100644 --- a/utils.go +++ b/utils.go @@ -19,7 +19,7 @@ func removeFromSlice(slice []string, r string) []string { } func FilterMap[T any](source map[string]T, f func(T) bool) map[string]T { - var n map[string]T + n := make(map[string]T, len(source)) for key, value := range source { if f(value) { n[key] = value