tcleanup, remove if statement (follow-up 13b05f64e6a89b90b80a470538798c116f968170) - electrum - Electrum Bitcoin wallet
 (HTM) git clone https://git.parazyd.org/electrum
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) Submodules
       ---
 (DIR) commit 8872e43f27d92f2ed090b76bd589c7159485e20c
 (DIR) parent 567130f4a37e55769b1b8f8f22348b25affa230b
 (HTM) Author: ThomasV <thomasv@electrum.org>
       Date:   Thu, 10 Dec 2020 17:21:41 +0100
       
       cleanup, remove if statement (follow-up 13b05f64e6a89b90b80a470538798c116f968170)
       
       Diffstat:
         M electrum/gui/kivy/main_window.py    |      11 +++++------
       
       1 file changed, 5 insertions(+), 6 deletions(-)
       ---
 (DIR) diff --git a/electrum/gui/kivy/main_window.py b/electrum/gui/kivy/main_window.py
       t@@ -623,12 +623,11 @@ class ElectrumWindow(App, Logger):
                    return ''
        
            def on_wizard_success(self, storage, db, password):
       -        if storage:
       -            self.password = password
       -            wallet = Wallet(db, storage, config=self.electrum_config)
       -            wallet.start_network(self.daemon.network)
       -            self.daemon.add_wallet(wallet)
       -            self.load_wallet(wallet)
       +        self.password = password
       +        wallet = Wallet(db, storage, config=self.electrum_config)
       +        wallet.start_network(self.daemon.network)
       +        self.daemon.add_wallet(wallet)
       +        self.load_wallet(wallet)
        
            def on_wizard_aborted(self):
                # wizard did not return a wallet; and there is no wallet open atm