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:
@@ -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
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user