Skip to content

Commit

Permalink
Comment: Updated a test expression to remove a logical short circuit.
Browse files Browse the repository at this point in the history
  • Loading branch information
munahaf committed Sep 20, 2023
1 parent 71d06ab commit 4d7b3fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gns3server/controller/node.py
Original file line number Diff line number Diff line change
Expand Up @@ -485,7 +485,7 @@ def _node_data(self, properties=None):

# None properties are not be send. Because it can mean the emulator doesn't support it
for key in list(data.keys()):
if data[key] is None or data[key] is {} or key in self.CONTROLLER_ONLY_PROPERTIES:
if data[key] is None or data[key] == {} or key in self.CONTROLLER_ONLY_PROPERTIES:
del data[key]

return data
Expand Down

0 comments on commit 4d7b3fb

Please sign in to comment.