diff options
author | Benjamin Schubert <bschubert15@bloomberg.net> | 2019-12-02 11:12:42 +0000 |
---|---|---|
committer | Benjamin Schubert <bschubert15@bloomberg.net> | 2019-12-02 11:51:15 +0000 |
commit | 1064374cf19ef5492c3b6b4a23ae14c49ac8ea86 (patch) | |
tree | 687dc82b3e4111ffbc3358ba959ba17991906aff /src/buildstream/storage | |
parent | 069b110c866ecfd652a041d735ca6d261b8d41ba (diff) | |
download | buildstream-1064374cf19ef5492c3b6b4a23ae14c49ac8ea86.tar.gz |
lint: remove all unecessary elif/else after break/continue
Newer pylint versions detect and complain about unnecessary elif/else
after a continue/break/return clause. Let's remove them
Diffstat (limited to 'src/buildstream/storage')
-rw-r--r-- | src/buildstream/storage/_casbaseddirectory.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/buildstream/storage/_casbaseddirectory.py b/src/buildstream/storage/_casbaseddirectory.py index df28dc591..f90d5c503 100644 --- a/src/buildstream/storage/_casbaseddirectory.py +++ b/src/buildstream/storage/_casbaseddirectory.py @@ -221,12 +221,12 @@ class CasBasedDirectory(Directory): else: if path == ".": continue - elif path == "..": + if path == "..": if current_dir.parent is not None: current_dir = current_dir.parent # In POSIX /.. == / so just stay at the root dir continue - elif create: + if create: current_dir = current_dir._add_directory(path) else: error = "'{}' not found in {}" |