Skip to content

Commit

Permalink
Return None if there is nothing to say
Browse files Browse the repository at this point in the history
  • Loading branch information
cccs-sgaron committed Apr 14, 2020
1 parent 1a24379 commit 3ee78ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion assemblyline/odm/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -891,7 +891,7 @@ def _construct_field(field, value):
clean.append(_c)
if _d is not None:
dropped.append(_d)
return clean, dropped
return clean or None, dropped or None

elif isinstance(field, Compound):
_c, _d = construct_safe(field.child_type, value)
Expand Down

0 comments on commit 3ee78ca

Please sign in to comment.