1
0
mirror of https://github.com/duke-git/lancet.git synced 2026-02-04 12:52:28 +08:00

fix: fix goreport issue

This commit is contained in:
dudaodong
2022-04-06 11:33:48 +08:00
parent 1ec3a5af87
commit 20b9e5353e

View File

@@ -69,7 +69,7 @@ func Intersect[K comparable, V any](maps ...map[K]V) map[K]V {
return maps[0]
}
res := make(map[K]V)
var res map[K]V
reducer := func(m1, m2 map[K]V) map[K]V {
m := make(map[K]V)
@@ -93,7 +93,6 @@ func Intersect[K comparable, V any](maps ...map[K]V) map[K]V {
return res
}
// Minus creates an map of whose key in mapA but not in mapB
func Minus[K comparable, V any](mapA, mapB map[K]V) map[K]V {
res := make(map[K]V)