Commit f132761c authored by Grégory Wisniewski's avatar Grégory Wisniewski

Swap boolean conditions to evaluate the boolean first.

git-svn-id: https://svn.erp5.org/repos/neo/trunk@2076 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent 9a931e3c
...@@ -307,7 +307,7 @@ class NodeManager(object): ...@@ -307,7 +307,7 @@ class NodeManager(object):
def _updateIdentified(self, node): def _updateIdentified(self, node):
uuid = node.getUUID() uuid = node.getUUID()
identified = node.isIdentified() identified = node.isIdentified()
if uuid in self._identified_dict and not identified: if not identified and uuid in self._identified_dict:
del self._identified_dict[uuid] del self._identified_dict[uuid]
elif identified: elif identified:
self._identified_dict[uuid] = node self._identified_dict[uuid] = node
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment