diff options
author | Florian Bruhin <me@the-compiler.org> | 2021-12-03 11:58:41 +0100 |
---|---|---|
committer | Florian Bruhin <me@the-compiler.org> | 2021-12-03 12:04:59 +0100 |
commit | 4435ef928796fa744be5452924a103bb2e58ee8e (patch) | |
tree | 73f99cf693fa492ce22e228d16fc1a7eff540e81 /qutebrowser/components/braveadblock.py | |
parent | b84d68e8ee22cb1679799c9ca73397e81110ea34 (diff) | |
download | qutebrowser-4435ef928796fa744be5452924a103bb2e58ee8e.tar.gz qutebrowser-4435ef928796fa744be5452924a103bb2e58ee8e.zip |
pylint: Enable else-if-usedpylint-2-12
Diffstat (limited to 'qutebrowser/components/braveadblock.py')
-rw-r--r-- | qutebrowser/components/braveadblock.py | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/qutebrowser/components/braveadblock.py b/qutebrowser/components/braveadblock.py index 21319cb1b..b1e5b8a29 100644 --- a/qutebrowser/components/braveadblock.py +++ b/qutebrowser/components/braveadblock.py @@ -266,14 +266,13 @@ class BraveAdBlocker: except DeserializationError: message.error("Reading adblock filter data failed (corrupted data?). " "Please run :adblock-update.") - else: - if ( - config.val.content.blocking.adblock.lists - and not self._has_basedir - and config.val.content.blocking.enabled - and self.enabled - ): - message.info("Run :adblock-update to get adblock lists.") + elif ( + config.val.content.blocking.adblock.lists + and not self._has_basedir + and config.val.content.blocking.enabled + and self.enabled + ): + message.info("Run :adblock-update to get adblock lists.") def adblock_update(self) -> blockutils.BlocklistDownloads: """Update the adblock block lists.""" |