URI: 
       tsimplify test - electrum - Electrum Bitcoin wallet
  HTML git clone https://git.parazyd.org/electrum
   DIR Log
   DIR Files
   DIR Refs
   DIR Submodules
       ---
   DIR commit c5b8706225ad028f3fd306928088b48a7b830ecb
   DIR parent 6bf48d0506a36846895d8410a4d9f0db54ffb1d6
  HTML Author: ThomasV <thomasv@electrum.org>
       Date:   Tue, 27 Nov 2018 18:34:36 +0100
       
       simplify test
       
       Diffstat:
         M electrum/wallet.py                  |       6 +++---
       
       1 file changed, 3 insertions(+), 3 deletions(-)
       ---
   DIR diff --git a/electrum/wallet.py b/electrum/wallet.py
       t@@ -272,9 +272,9 @@ class Abstract_Wallet(AddressSynchronizer):
                    else:
                        # avoid saving empty dict
                        return True
       -        if ccy not in self.fiat_value:
       -            self.fiat_value[ccy] = {}
       -        if not reset:
       +        else:
       +            if ccy not in self.fiat_value:
       +                self.fiat_value[ccy] = {}
                    self.fiat_value[ccy][txid] = text
                self.storage.put('fiat_value', self.fiat_value)
                return reset