From dcce70f4b9783fd5a88ba0b855f7eda7f5f2e209 Mon Sep 17 00:00:00 2001 From: Ruslan Kuprieiev Date: Tue, 24 Sep 2019 16:33:15 +0300 Subject: [PATCH] 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. --- dvc/output/base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dvc/output/base.py b/dvc/output/base.py index 4b360ae56..44220d476 100644 --- a/dvc/output/base.py +++ b/dvc/output/base.py @@ -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]