simplify _db_file_is_uploaded

This commit is contained in:
David Stainton 2015-07-15 12:19:08 -07:00 committed by Daira Hopwood
parent 0118c5105b
commit 3ea5031261

View File

@ -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):