Skip to content

Commit

Permalink
Fixing speedway so that it does not print a jump statement when not c…
Browse files Browse the repository at this point in the history
…haining each term. (#359)
  • Loading branch information
ankenyr committed Apr 15, 2024
1 parent d971eb0 commit a7cfada
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion aerleon/lib/iptables.py
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@ def __str__(self) -> str:
)
)

if self._POSTJUMP_FORMAT:
if self._POSTJUMP_FORMAT and self.chained_terms:
ret_str.append(
self._POSTJUMP_FORMAT.substitute(filter=self.filter, term=self.term_name)
)
Expand Down

0 comments on commit a7cfada

Please sign in to comment.