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:
co-authored by
Claude Opus 5.5
parent
70dee22a89
commit
1b225753cd
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user