Skip to content

Commit 7e7c83c

Browse files
Robbie1977Copilot
andauthored
Update src/test/test_examples_diff.py
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 5310798 commit 7e7c83c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/test/test_examples_diff.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ def remove_nulls(data):
108108
for k, v in data.items():
109109
cleaned = remove_nulls(v)
110110
# Skip None, empty dicts or empty lists
111-
if cleaned is None or cleaned == {} or (isinstance(cleaned, list) and len(cleaned) == 0):
111+
if cleaned is None or cleaned == {} or cleaned == []:
112112
continue
113113
new_dict[k] = cleaned
114114
return new_dict

0 commit comments

Comments
 (0)