mirror of
https://github.com/kanaka/mal.git
synced 2024-09-21 10:37:58 +03:00
Remove unnecessary lookup in 'get'
This commit is contained in:
parent
ef7fc8cad5
commit
ebaca6bbe9
@ -40,8 +40,8 @@ def dissoc(src_hm, *keys):
|
||||
return hm
|
||||
|
||||
def get(hm, key):
|
||||
if hm and key in hm:
|
||||
return hm[key]
|
||||
if hm is not None:
|
||||
return hm.get(key)
|
||||
else:
|
||||
return None
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user