1
0
mirror of https://github.com/duke-git/lancet.git synced 2026-02-09 07:02:29 +08:00

refactor: clean code

This commit is contained in:
dudaodong
2023-07-24 15:42:36 +08:00
parent 65396cee32
commit fe0264f628

View File

@@ -301,9 +301,5 @@ func MapValues[K comparable, V any, T any](m map[K]V, iteratee func(key K, value
// Play: todo // Play: todo
func HasKey[K comparable, V any](m map[K]V, key K) bool { func HasKey[K comparable, V any](m map[K]V, key K) bool {
_, haskey := m[key] _, haskey := m[key]
if haskey { return haskey
return true
}
return false
} }