Remove redundant stack copies after execution

The input stack is already copied when remember_stack is off, and the
removed line is a no-op when it is on.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
mcDandy
2026-10-18 12:55:08 +02:00
co-authored by Claude Opus 5.5
parent 70dee22a89
commit 1b225753cd
7 changed files with 25 additions and 12 deletions
-2
View File
@@ -105,9 +105,7 @@ class StringMathNode(io.ComfyNode):
for start in range(0, len(s), n):
yield s[start:start+n]
stack = stack if remember_stack else copy.deepcopy(stack)
return (chunks(result,batching), stack)
else:
stack = stack if remember_stack else copy.deepcopy(stack)
return ([result], stack)