Skip to content

Commit

Permalink
Merge pull request #37 from django-oscar/return-valid-resources
Browse files Browse the repository at this point in the history
[Fix] Consistent return statements
  • Loading branch information
specialunderwear authored Aug 27, 2024
2 parents afaed5f + 8ad8629 commit a51f6bb
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 a51f6bb

Please sign in to comment.