You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Let domain.get_user return empty dict ({}) instead of None when not found.
The text was updated successfully, but these errors were encountered:
twd2
changed the title
Let domain.get_user return empty dict ({}) instead of None if not found
Let domain.get_user return empty dict ({}) instead of None when not found
Apr 10, 2019
In general, processing data with the same return type is easier, you wouldn't like the idea that some method sometimes returns a certain type and on the other times another. Likewise, unify data types by making None to {} is a lot easier for programming and a bit more understandable.
Let
domain.get_user
return empty dict ({}
) instead ofNone
when not found.The text was updated successfully, but these errors were encountered: