output: base: checkout: make returns consistent

As reported by deep source: Either all return statements in a function should return an expression, or none of them should.
This commit is contained in:
Ruslan Kuprieiev
2019-09-24 16:33:15 +03:00
committed by GitHub
parent be012e70cf
commit dcce70f4b9
+1 -1
View File
@@ -287,7 +287,7 @@ class OutputBase(object):
def checkout(self, force=False, progress_callback=None, tag=None):
if not self.use_cache:
progress_callback(str(self.path_info), self.get_files_number())
return
return None
if tag:
info = self.tags[tag]