mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-03-09 05:14:22 +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:
parent
fcdc8b0fcb
commit
b8aa84b1a1
1 changed files with 2 additions and 3 deletions
|
@ -1340,9 +1340,8 @@ void BitcoinGUI::setEncryptionStatus(int status)
|
||||||
|
|
||||||
void BitcoinGUI::updateWalletStatus()
|
void BitcoinGUI::updateWalletStatus()
|
||||||
{
|
{
|
||||||
if (!walletFrame) {
|
assert(walletFrame);
|
||||||
return;
|
|
||||||
}
|
|
||||||
WalletView * const walletView = walletFrame->currentWalletView();
|
WalletView * const walletView = walletFrame->currentWalletView();
|
||||||
if (!walletView) {
|
if (!walletView) {
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Add table
Reference in a new issue