Commit 913fa901 authored by Nicolas Delaby's avatar Nicolas Delaby

avoid caculating len of list only for boolean comparison

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@35798 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent e6299b55
......@@ -541,7 +541,7 @@ class SynchronizationTool( SubscriptionSynchronization,
signature = subscriber.getSignatureFromObjectId(object.getId()) # XXX may be change for rid
copy_path = conflict.getCopyPath()
signature.delConflict(conflict)
if len(signature.getConflictList()) == 0:
if not signature.getConflictList():
if copy_path is not None:
#LOG('p_sync.applyPublisherValue, conflict_list empty on : ', TRACE, signature)
# Delete the copy of the object if the there is one
......
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