Skip to content

Commit 8c3c9aa

Browse files
lklimekCopilot
andauthored
Update src/context/wallet_lifecycle.rs
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 9c9dea8 commit 8c3c9aa

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

src/context/wallet_lifecycle.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,10 +74,7 @@ impl AppContext {
7474
// bootstrap_loaded_wallets will load them shortly and the SPV wait
7575
// loop will block until load completes.
7676
let expected_wallets = if expected_wallets == 0 {
77-
self.db
78-
.wallet_count_for_network(&self.network)
79-
.unwrap_or(0)
80-
.min(1)
77+
self.db.wallet_count_for_network(&self.network)?.min(1)
8178
} else {
8279
expected_wallets
8380
};

0 commit comments

Comments
 (0)