From 5915f17fcf61b4b58d6cbb98f35494bcea6f82d6 Mon Sep 17 00:00:00 2001 From: Ruslan Kuprieiev Date: Sun, 18 Aug 2019 05:15:08 +0300 Subject: [PATCH] output: base: remove unnecessary 'else' Reported by DeepSource. --- dvc/output/base.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/dvc/output/base.py b/dvc/output/base.py index f91a939e3..8b55bd71f 100644 --- a/dvc/output/base.py +++ b/dvc/output/base.py @@ -104,8 +104,7 @@ class OutputBase(object): if remote: parsed = urlparse(path) return remote.path_info / parsed.path.lstrip("/") - else: - return self.REMOTE.path_cls(path) + return self.REMOTE.path_cls(path) def __repr__(self): return "{class_name}: '{def_path}'".format(