Skip to content

Commit

Permalink
Node Class: Don't instantiate node twice
Browse files Browse the repository at this point in the history
  • Loading branch information
myxie committed Sep 18, 2024
1 parent 33e1f89 commit 6441cc7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions daliuge-engine/dlg/manager/composite_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -242,9 +242,9 @@ def nodes(self):
else:
return self._nodes

def add_node(self, node):
def add_node(self, node: Node):
if self.use_dmHosts:
return self._dmHosts.append(Node(node))
return self._dmHosts.append(node)
else:
self._nodes.append(node)

Expand Down

0 comments on commit 6441cc7

Please sign in to comment.