1
0
mirror of https://github.com/duke-git/lancet.git synced 2026-02-04 12:52:28 +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
func HasKey[K comparable, V any](m map[K]V, key K) bool {
_, haskey := m[key]
if haskey {
return true
}
return false
return haskey
}