mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-12-20 04:36:08 +01:00
qt, refactor: Replace if check with assert
There are no ways BitcoinGUI::updateWalletStatus being called without an instance of the WalletFrame class.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user