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:
Hennadii Stepanov 2021-08-11 20:30:49 +03:00
parent fcdc8b0fcb
commit b8aa84b1a1
No known key found for this signature in database
GPG key ID: 410108112E7EA81F

View file

@ -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;