Skip to content

Commit e49b868

Browse files
[qt] Remove excess logic
Replace … ``` if (foo) { return true; } else { return false; } ``` … with the equivalent … ``` return foo; ```
1 parent 962cd3f commit e49b868

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/qt/walletmodel.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -702,9 +702,7 @@ bool WalletModel::transactionSignalsRBF(uint256 hash) const
702702
{
703703
LOCK2(cs_main, wallet->cs_wallet);
704704
const CWalletTx *wtx = wallet->GetWalletTx(hash);
705-
if (wtx && SignalsOptInRBF(*wtx))
706-
return true;
707-
return false;
705+
return wtx && SignalsOptInRBF(*wtx);
708706
}
709707

710708
bool WalletModel::bumpFee(uint256 hash)

0 commit comments

Comments
 (0)