Skip to content

Commit

Permalink
'Refactored by Sourcery' (#130)
Browse files Browse the repository at this point in the history
Co-authored-by: Sourcery AI <>
  • Loading branch information
sourcery-ai[bot] authored Jan 12, 2022
1 parent 1374cb8 commit ed60bc6
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions conreq/utils/generic.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,7 @@ def is_key_value_in_list(
if isinstance(search_list, list):
for item in search_list:
if item.__contains__(key) and item[key] == value:
if return_item:
return item
return True
return item if return_item else True
return False


Expand Down

0 comments on commit ed60bc6

Please sign in to comment.