Skip to content

Commit

Permalink
drop condition that should be catched at initialization
Browse files Browse the repository at this point in the history
  • Loading branch information
h-mayorquin committed Oct 19, 2022
1 parent b5fd2f0 commit 89451af
Showing 1 changed file with 0 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,6 @@ def _dict_intersection(dict_list: List) -> Dict:
dict:
Dictionary containing key-value pairs common to all input dicitionary_list
"""
if len(dict_list) == 0:
return dict()

# Collect keys appearing in all dictionaries
common_keys = list(set.intersection(*[set(h.keys()) for h in dict_list]))
Expand Down

0 comments on commit 89451af

Please sign in to comment.