From e49b868cfe9391ec61b4fedef9811a4be265525d Mon Sep 17 00:00:00 2001 From: practicalswift Date: Thu, 18 May 2017 18:35:06 +0200 Subject: [PATCH] [qt] Remove excess logic MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Replace … ``` if (foo) { return true; } else { return false; } ``` … with the equivalent … ``` return foo; ``` --- src/qt/walletmodel.cpp | 4 +--- 1 file changed, 1 insertion(+), 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)