1
0
mirror of https://github.com/GNS3/gns3-server synced 2024-11-18 14:28:08 +00:00

Comment: Updated a test expression to remove a logical short circuit.

This commit is contained in:
munahaf 2023-09-20 06:49:47 +00:00
parent 71d06abaf4
commit 4d7b3fb9d6

View File

@ -485,7 +485,7 @@ class Node:
# None properties are not be send. Because it can mean the emulator doesn't support it # None properties are not be send. Because it can mean the emulator doesn't support it
for key in list(data.keys()): 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] del data[key]
return data return data