aboutsummaryrefslogtreecommitdiff
path: root/src/qt/walletmodel.cpp
diff options
context:
space:
mode:
authorpracticalswift <practicalswift@users.noreply.github.com>2017-05-18 18:35:06 +0200
committerpracticalswift <practicalswift@users.noreply.github.com>2017-05-18 20:48:14 +0200
commite49b868cfe9391ec61b4fedef9811a4be265525d (patch)
tree69d430502d5fdb74a29596928ef123f3e486b45e /src/qt/walletmodel.cpp
parent962cd3f0587e87de1e38c1777151dca282f3dd84 (diff)
[qt] Remove excess logic
Replace … ``` if (foo) { return true; } else { return false; } ``` … with the equivalent … ``` return foo; ```
Diffstat (limited to 'src/qt/walletmodel.cpp')
-rw-r--r--src/qt/walletmodel.cpp4
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)