Skip to content

Commit 174e8ec

Browse files
committed
linter
1 parent b150e81 commit 174e8ec

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

infrahub_sdk/node.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1261,9 +1261,7 @@ async def save(
12611261
else:
12621262
if self.id is None:
12631263
raise UninitializedError("Cannot add related nodes before the node has an ID")
1264-
await self._client.group_context.add_related_nodes(
1265-
ids=[self.id], update_group_context=update_group_context
1266-
)
1264+
await self._client.group_context.add_related_nodes(ids=[self.id], update_group_context=update_group_context)
12671265
self._client.store.set(node=self)
12681266

12691267
async def generate_query_data(
@@ -1784,9 +1782,7 @@ def save(
17841782
if "CoreGroup" in self._schema.inherit_from:
17851783
if self.id is None:
17861784
raise UninitializedError("Cannot add related nodes before the node has an ID")
1787-
self._client.group_context.add_related_nodes(
1788-
ids=[self.id], update_group_context=update_group_context
1789-
)
1785+
self._client.group_context.add_related_nodes(ids=[self.id], update_group_context=update_group_context)
17901786

17911787
else:
17921788
if self.id is None:

0 commit comments

Comments
 (0)