aboutsummaryrefslogtreecommitdiff
path: root/src/qt/walletmodel.cpp
diff options
context:
space:
mode:
authorpracticalswift <[email protected]>2017-05-18 18:35:06 +0200
committerpracticalswift <[email protected]>2017-05-18 20:48:14 +0200
commite49b868cfe9391ec61b4fedef9811a4be265525d (patch)
tree69d430502d5fdb74a29596928ef123f3e486b45e /src/qt/walletmodel.cpp
parentMerge #9697: [Qt] simple fee bumper with user verification (diff)
downloaddiscoin-e49b868cfe9391ec61b4fedef9811a4be265525d.tar.xz
discoin-e49b868cfe9391ec61b4fedef9811a4be265525d.zip
[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 37af8abb3..1c0863745 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)