]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
Replace nested if with an 'and' in the if condition...
authorDavid Stainton <dstainton415@gmail.com>
Mon, 26 Oct 2015 17:43:13 +0000 (18:43 +0100)
committerDaira Hopwood <daira@jacaranda.org>
Tue, 27 Oct 2015 15:13:39 +0000 (15:13 +0000)
src/allmydata/frontends/magic_folder.py

index ef8b004a18cbe49738932fff7259b2f9f4e916f0..e1df0a64a4a59593bbe448134eb7a2f6314937e8 100644 (file)
@@ -688,8 +688,7 @@ class Downloader(QueueMixin, WriteFileMixin):
                 local_last_downloaded_uri = self._db.get_last_downloaded_uri(relpath_u)
                 print "metadata %r" % (metadata,)
                 print "<<<<--- if %r != %r" % (dmd_last_downloaded_uri, local_last_downloaded_uri)
-                if dmd_last_downloaded_uri is not None:
-                    if dmd_last_downloaded_uri != local_last_downloaded_uri:
+                if dmd_last_downloaded_uri is not None and dmd_last_downloaded_uri != local_last_downloaded_uri:
                         is_conflict = True
                 #dmd_last_uploaded_uri = metadata.get('last_uploaded_uri', None)
                 #local_last_uploaded_uri = ...