summaryrefslogtreecommitdiff
path: root/src/buildstream/plugins
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/plugins
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/plugins')
-rw-r--r--src/buildstream/plugins/sources/tar.py2
-rw-r--r--src/buildstream/plugins/sources/zip.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/buildstream/plugins/sources/tar.py b/src/buildstream/plugins/sources/tar.py
index e35b52f85..fc4f5736a 100644
--- a/src/buildstream/plugins/sources/tar.py
+++ b/src/buildstream/plugins/sources/tar.py
@@ -235,7 +235,7 @@ class TarSource(DownloadableFileSource):
# Avoid considering the '.' directory, if any is included in the archive
# this is to avoid the default 'base-dir: *' value behaving differently
# depending on whether the tarball was encoded with a leading '.' or not
- elif member_name == ".":
+ if member_name == ".":
continue
yield member_name
diff --git a/src/buildstream/plugins/sources/zip.py b/src/buildstream/plugins/sources/zip.py
index 47933c8eb..47823dfde 100644
--- a/src/buildstream/plugins/sources/zip.py
+++ b/src/buildstream/plugins/sources/zip.py
@@ -162,7 +162,7 @@ class ZipSource(DownloadableFileSource):
# Avoid considering the '.' directory, if any is included in the archive
# this is to avoid the default 'base-dir: *' value behaving differently
# depending on whether the archive was encoded with a leading '.' or not
- elif member.filename == "." or member.filename == "./":
+ if member.filename == "." or member.filename == "./":
continue
yield member.filename