Commit 49b6acad authored by Vincent Pelletier's avatar Vincent Pelletier

Simplify a "if: pass else: ..." block.

git-svn-id: https://svn.erp5.org/repos/neo/trunk@1611 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent 47c4926f
......@@ -167,10 +167,7 @@ class Replicator(object):
(dump(node.getUUID()), ))
return
if self.current_connection is not None:
if self.current_connection.getAddress() == addr:
# I can reuse the same connection.
pass
else:
if self.current_connection.getAddress() != addr:
self.current_connection.close()
self.current_connection = None
......
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