From 2f81e9d3741dce6448ddbf4b24169fe1b8be3aca Mon Sep 17 00:00:00 2001 From: Lex Berezhny Date: Tue, 14 Jul 2020 23:13:10 -0400 Subject: [PATCH] pylint --- lbry/wallet/ledger.py | 2 +- setup.cfg | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/lbry/wallet/ledger.py b/lbry/wallet/ledger.py index f41ffb64c..50d68b2ac 100644 --- a/lbry/wallet/ledger.py +++ b/lbry/wallet/ledger.py @@ -704,7 +704,7 @@ class Ledger(metaclass=LedgerRegistry): batches.append([]) heights_in_batch = 1 batches[-1].append(txid) - if not len(batches[-1]): + if not batches[-1]: batches.pop() last_showed_synced_count = 0 diff --git a/setup.cfg b/setup.cfg index e8bc1920b..7a5b684e5 100644 --- a/setup.cfg +++ b/setup.cfg @@ -35,6 +35,7 @@ disable= too-many-statements, too-many-nested-blocks, too-many-public-methods, + too-many-return-statements, too-many-instance-attributes, protected-access, unused-argument