summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKali Kaneko <kali@leap.se>2015-06-10 10:49:34 -0400
committerKali Kaneko <kali@leap.se>2015-06-10 10:49:34 -0400
commitb7d1c1b40b18c8336edc07c76ef9b3047d0bf95b (patch)
treec19ccd93d8de252e75950b5694c8a816b3e6b5a2 /src
parent03cc09d35c880a5805ac9bdbad4a8b6ebe8e717f (diff)
[refactor] remove unneeded conditional
Diffstat (limited to 'src')
-rw-r--r--src/leap/mail/sync_hooks.py8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/leap/mail/sync_hooks.py b/src/leap/mail/sync_hooks.py
index 3cf858b..a8a69c9 100644
--- a/src/leap/mail/sync_hooks.py
+++ b/src/leap/mail/sync_hooks.py
@@ -60,8 +60,7 @@ class MailProcessingPostSyncHook(object):
log.msg("Mail post-sync hook: processing %s" % doc_id)
process_fun(doc_id)
- if self._processing_deferreds:
- return defer.gatherResults(self._processing_deferreds)
+ return defer.gatherResults(self._processing_deferreds)
def set_account(self, account):
self._account = account
@@ -100,9 +99,8 @@ class MailProcessingPostSyncHook(object):
return res
d = self.process_received_docs(pending)
- if d:
- d.addCallback(remove_pending_docs)
- return d
+ d.addCallback(remove_pending_docs)
+ return d
_mbox_uuid_regex = regex_compile(constants.METAMSGID_MBOX_RE)