Skip to content

Commit b8aa84b

Browse files
committed
qt, refactor: Replace if check with assert
There are no ways BitcoinGUI::updateWalletStatus being called without an instance of the WalletFrame class.
1 parent fcdc8b0 commit b8aa84b

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/qt/bitcoingui.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1340,9 +1340,8 @@ void BitcoinGUI::setEncryptionStatus(int status)
13401340

13411341
void BitcoinGUI::updateWalletStatus()
13421342
{
1343-
if (!walletFrame) {
1344-
return;
1345-
}
1343+
assert(walletFrame);
1344+
13461345
WalletView * const walletView = walletFrame->currentWalletView();
13471346
if (!walletView) {
13481347
return;

0 commit comments

Comments
 (0)