From 1ae458c34f49e8d7b35c39c1e6c592b423493a97 Mon Sep 17 00:00:00 2001 From: karajan1001 Date: Fri, 1 May 2020 16:24:29 +0800 Subject: [PATCH] deepsource required --- dvc/config.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/dvc/config.py b/dvc/config.py index 37a7318ab0..1a5b89ab41 100644 --- a/dvc/config.py +++ b/dvc/config.py @@ -241,12 +241,9 @@ def get_dir(cls, level): if level == "global": return user_config_dir(cls.APPNAME, cls.APPAUTHOR) - elif level == "system": + if level == "system": return site_config_dir(cls.APPNAME, cls.APPAUTHOR) - else: - raise ConfigError( - "This method only used in global or system level." - ) + raise ConfigError("This method only used in global or system level.") @cached_property def files(self):