From: David Stainton Date: Wed, 15 Jul 2015 19:19:08 +0000 (-0700) Subject: simplify _db_file_is_uploaded X-Git-Url: https://git.rkrishnan.org/components/com_hotproperty/flags/(%5B%5E?a=commitdiff_plain;h=158c31eb5d1ce56ae43fa987f444c07e7c89c733;p=tahoe-lafs%2Ftahoe-lafs.git simplify _db_file_is_uploaded --- 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):