Skip to content

Commit

Permalink
Shorten boolean expression, use double quotes
Browse files Browse the repository at this point in the history
  • Loading branch information
gasull committed Mar 24, 2021
1 parent 1c89cdb commit 7405d84
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion electroncash/base_wizard.py
Expand Up @@ -280,7 +280,7 @@ def derivation_dialog(self, f, default_derivation, seed=''):
_("If you want the wallet to use Bitcoin Cash addresses use m/44'/145'/0'"),
_("The placeholder value of {} is the default derivation for {} wallets.").format(default_derivation, self.wallet_type),
])
scannable = True if self.wallet_type == 'standard' and seed else False
scannable = (self.wallet_type == "standard") and bool(seed)
self.derivation_path_dialog(run_next=f, title=_('Derivation for {} wallet').format(self.wallet_type),
message=message, default=default_derivation, test=bitcoin.is_bip32_derivation,
seed=seed, scannable=scannable)
Expand Down

0 comments on commit 7405d84

Please sign in to comment.