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
@@ -159,8 +159,6 @@ class ImageMathNode(io.ComfyNode):
|
||||
res_list = []
|
||||
for result_chunk in res:
|
||||
res_list.append(result_chunk)
|
||||
stack = stack if remember_stack else copy.deepcopy(stack)
|
||||
return (res_list, stack)
|
||||
else:
|
||||
stack = stack if remember_stack else copy.deepcopy(stack)
|
||||
return ([result], stack)
|
||||
|
||||
Reference in New Issue
Block a user