Browse Source

[qt] Remove excess logic

Replace …

```
if (foo) { return true; } else { return false; }
```

… with the equivalent …

```
return foo;
```
0.15
practicalswift 7 years ago
parent
commit
e49b868cfe
  1. 4
      src/qt/walletmodel.cpp

4
src/qt/walletmodel.cpp

@ -702,9 +702,7 @@ bool WalletModel::transactionSignalsRBF(uint256 hash) const @@ -702,9 +702,7 @@ bool WalletModel::transactionSignalsRBF(uint256 hash) const
{
LOCK2(cs_main, wallet->cs_wallet);
const CWalletTx *wtx = wallet->GetWalletTx(hash);
if (wtx && SignalsOptInRBF(*wtx))
return true;
return false;
return wtx && SignalsOptInRBF(*wtx);
}
bool WalletModel::bumpFee(uint256 hash)

Loading…
Cancel
Save