From de59ffa9ff8f65ef10ddd0fd635069f2191a2acf Mon Sep 17 00:00:00 2001 From: David Stainton Date: Wed, 15 Jul 2015 12:19:08 -0700 Subject: [PATCH] simplify _db_file_is_uploaded --- src/allmydata/frontends/magic_folder.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/allmydata/frontends/magic_folder.py b/src/allmydata/frontends/magic_folder.py index 9e83c3f1..077affab 100644 --- a/src/allmydata/frontends/magic_folder.py +++ b/src/allmydata/frontends/magic_folder.py @@ -233,11 +233,7 @@ class MagicFolder(service.MultiService): """ assert self._db != None r = self._db.check_file(childpath) - filecap = r.was_uploaded() - if filecap is False: - return False - else: - return True + return r.was_uploaded() def _scan(self, localpath): if not os.path.isdir(localpath): -- 2.45.2