Skip to content

Commit

Permalink
zcbor.py: Remove outdated assert statement
Browse files Browse the repository at this point in the history
Signed-off-by: Øyvind Rønningstad <[email protected]>
  • Loading branch information
oyvindronningstad committed Aug 15, 2024
1 parent a54e92a commit 7b4a0d7
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions zcbor/zcbor.py
Original file line number Diff line number Diff line change
Expand Up @@ -2589,9 +2589,6 @@ def full_xcode(self, union_int=None):
f"This code needs self.mode to be 'decode', not {self.mode}."
if not self.repeated_single_func_impl_condition():
decode_str = self.repeated_xcode(union_int)
assert "zcbor_" in decode_str, \
"""Must be a direct call to zcbor to guarantee that payload and elem_count"
are cleaned up after a failure."""
return f"({self.present_var_access()} = {self.repeated_xcode(union_int)}, 1)"
func, *arguments = self.repeated_single_func(ptr_result=True)
return (
Expand Down

0 comments on commit 7b4a0d7

Please sign in to comment.