Skip to content

Commit 00a7a78

Browse files
committed
Remove useless assert
assert is called on props, but we can only get to assert if props is true. bandit audit flagged the statement, so I removed it since it wasn't needed.
1 parent e094bf5 commit 00a7a78

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

roundup/cgi/actions.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -654,8 +654,6 @@ def _editnodes(self, all_props, all_links):
654654
# a visible (non-quiet) property.
655655
pass
656656
else:
657-
assert props
658-
659657
# make a new node
660658
newid = self._createnode(cn, props)
661659
if nodeid is None:

0 commit comments

Comments
 (0)