From 8ad8629aadb9b895e430f7572515698e932228c5 Mon Sep 17 00:00:00 2001 From: Samar Hassan Date: Mon, 26 Aug 2024 20:28:01 +0100 Subject: [PATCH] feat :star: consistent return statements --- oscar_odin/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/oscar_odin/utils.py b/oscar_odin/utils.py index 7c206fd..b29b7f9 100644 --- a/oscar_odin/utils.py +++ b/oscar_odin/utils.py @@ -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