1
1
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:
Campbell Barton 2017-09-13 12:05:04 +10:00
parent ef7fc8cad5
commit ebaca6bbe9

View File

@ -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