mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-12 06:58:57 +01:00
[qt] Remove excess logic
Replace …
```
if (foo) { return true; } else { return false; }
```
… with the equivalent …
```
return foo;
```
This commit is contained in:
@@ -702,9 +702,7 @@ bool WalletModel::transactionSignalsRBF(uint256 hash) const
|
|||||||
{
|
{
|
||||||
LOCK2(cs_main, wallet->cs_wallet);
|
LOCK2(cs_main, wallet->cs_wallet);
|
||||||
const CWalletTx *wtx = wallet->GetWalletTx(hash);
|
const CWalletTx *wtx = wallet->GetWalletTx(hash);
|
||||||
if (wtx && SignalsOptInRBF(*wtx))
|
return wtx && SignalsOptInRBF(*wtx);
|
||||||
return true;
|
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
bool WalletModel::bumpFee(uint256 hash)
|
bool WalletModel::bumpFee(uint256 hash)
|
||||||
|
|||||||
Reference in New Issue
Block a user