diff options
author | herr kaste <herr.kaste@gmail.com> | 2022-11-11 13:12:40 +0100 |
---|---|---|
committer | herr kaste <herr.kaste@gmail.com> | 2022-11-11 13:12:40 +0100 |
commit | dcdb89d31807b9278f9c535d6e1c14e5ec2da9ec (patch) | |
tree | 999c0ea4d002698e415e6f0d783c2c11f00fc64a | |
parent | 12cc5fbd67eebf92eb2213b03c07b138ae1fb448 (diff) | |
download | isort-dcdb89d31807b9278f9c535d6e1c14e5ec2da9ec.tar.gz |
Remove redundant `os.getcwd()` call
Remove the or-clause because `os.path.abspath(".")` equals
`os.getcwd()`.
-rw-r--r-- | isort/main.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/isort/main.py b/isort/main.py index 293d2ed8..6d1987d2 100644 --- a/isort/main.py +++ b/isort/main.py @@ -1087,7 +1087,7 @@ def main(argv: Optional[Sequence[str]] = None, stdin: Optional[TextIOWrapper] = return if "settings_path" not in arguments: arguments["settings_path"] = ( - os.path.abspath(file_names[0] if file_names else ".") or os.getcwd() + os.path.abspath(file_names[0] if file_names else ".") ) if not os.path.isdir(arguments["settings_path"]): arguments["settings_path"] = os.path.dirname(arguments["settings_path"]) |