diff options
author | practicalswift <practicalswift@users.noreply.github.com> | 2017-05-18 18:35:06 +0200 |
---|---|---|
committer | practicalswift <practicalswift@users.noreply.github.com> | 2017-05-18 20:48:14 +0200 |
commit | e49b868cfe9391ec61b4fedef9811a4be265525d (patch) | |
tree | 69d430502d5fdb74a29596928ef123f3e486b45e | |
parent | 962cd3f0587e87de1e38c1777151dca282f3dd84 (diff) |
[qt] Remove excess logic
Replace …
```
if (foo) { return true; } else { return false; }
```
… with the equivalent …
```
return foo;
```
-rw-r--r-- | src/qt/walletmodel.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/qt/walletmodel.cpp b/src/qt/walletmodel.cpp index 37af8abb38..1c08637457 100644 --- a/src/qt/walletmodel.cpp +++ b/src/qt/walletmodel.cpp @@ -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) |