Skip to content

Commit 24f9146

Browse files
committed
Remove redundant assert node.id is not None (already guaranteed by #657)
1 parent e138419 commit 24f9146

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

canopen/network.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,6 @@ def add_node(
162162
logger.info("Trying to read EDS from node %d", node)
163163
object_dictionary = import_from_node(node, self)
164164
node = RemoteNode(node, object_dictionary) # type: ignore[arg-type]
165-
assert node.id is not None
166165
self[node.id] = node
167166
return node
168167

@@ -185,7 +184,6 @@ def create_node(
185184
"""
186185
if isinstance(node, int):
187186
node = LocalNode(node, object_dictionary) # type: ignore[arg-type]
188-
assert node.id is not None
189187
self[node.id] = node
190188
return node
191189

0 commit comments

Comments
 (0)