Skip to content

Commit

Permalink
chore: make linters happy
Browse files Browse the repository at this point in the history
  • Loading branch information
freak12techno committed Jun 2, 2022
1 parent d5094a8 commit ee0e787
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ee0e787

Please sign in to comment.