summaryrefslogtreecommitdiff
path: root/src/buildstream/storage
diff options
context:
space:
mode:
authorBenjamin Schubert <bschubert15@bloomberg.net>2019-12-02 11:12:42 +0000
committerBenjamin Schubert <bschubert15@bloomberg.net>2019-12-02 11:51:15 +0000
commit1064374cf19ef5492c3b6b4a23ae14c49ac8ea86 (patch)
tree687dc82b3e4111ffbc3358ba959ba17991906aff /src/buildstream/storage
parent069b110c866ecfd652a041d735ca6d261b8d41ba (diff)
downloadbuildstream-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.py4
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 {}"