Skip to content

Commit b07e6f2

Browse files
bagel897tkucar
authored and
tkucar
committed
fix bug (#323)
# Motivation <!-- Why is this change necessary? --> # Content <!-- Please include a summary of the change --> # Testing <!-- How was the change tested? --> # Please check the following before marking your PR as ready for review - [ ] I have added tests for my changes - [ ] I have updated the documentation or added new documentation as needed
1 parent 737e555 commit b07e6f2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/codegen/sdk/core/symbol_groups/collection.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,8 @@ def remove(self, value: Child | None = None, *args, **kwargs) -> None:
112112
# For example, let's remove all occurrences of the value instead of just the first one
113113
if value is None:
114114
super().remove(*args, **kwargs)
115-
value.remove(*args, **kwargs)
115+
else:
116+
value.remove(*args, **kwargs)
116117

117118
def _inserts_till(self, max_idx: int | None = None) -> int:
118119
"""Find the number of pending inserts until max_idx."""

0 commit comments

Comments
 (0)