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
@@ -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)