Skip to content

Commit

Permalink
qt, refactor: Replace if check with assert
Browse files Browse the repository at this point in the history
There are no ways BitcoinGUI::updateWalletStatus being called without
an instance of the WalletFrame class.
  • Loading branch information
hebasto committed Aug 14, 2021
1 parent fcdc8b0 commit b8aa84b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/qt/bitcoingui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1340,9 +1340,8 @@ void BitcoinGUI::setEncryptionStatus(int status)

void BitcoinGUI::updateWalletStatus()
{
if (!walletFrame) {
return;
}
assert(walletFrame);

WalletView * const walletView = walletFrame->currentWalletView();
if (!walletView) {
return;
Expand Down

0 comments on commit b8aa84b

Please sign in to comment.