Skip to content

Commit

Permalink
feat ⭐ consistent return statements
Browse files Browse the repository at this point in the history
  • Loading branch information
samar-hassan committed Aug 26, 2024
1 parent 01da495 commit 8ad8629
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion oscar_odin/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ def validate_resources(resources):
errors = []
valid_resources = []
if not resources:
return
return [], []
if not isinstance(resources, (list, tuple)):
if isinstance(resources, MappingResult):
resources = resources.items
Expand Down

0 comments on commit 8ad8629

Please sign in to comment.