use this helper

it might even let us refactor someday
This commit is contained in:
Jean-Paul Calderone 2019-02-25 16:04:33 -05:00
parent 999b8bdbd7
commit 5410acd745

View File

@ -1037,7 +1037,7 @@ class Uploader(QueueMixin):
if magicpath.should_ignore_file(relpath_u):
action.add_success_fields(ignored=True, already_pending=False, size=None)
return
if relpath_u in self._pending:
if self.is_pending(relpath_u):
action.add_success_fields(ignored=False, already_pending=True, size=None)
return