From 5082a4241631895cecf0bc6cb89a46195128526d Mon Sep 17 00:00:00 2001 From: Neil Date: Tue, 13 Oct 2020 04:30:59 +0100 Subject: [PATCH] Remove redundant if statement --- src/rpc/misc.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/rpc/misc.cpp b/src/rpc/misc.cpp index 7d245424f8..81e98f25e7 100644 --- a/src/rpc/misc.cpp +++ b/src/rpc/misc.cpp @@ -576,12 +576,7 @@ UniValue getblockhashes(const JSONRPCRequest& request) std::vector > blockHashes; bool found = false; - if (fActiveOnly) { - found = GetTimestampIndex(high, low, fActiveOnly, blockHashes); - } - else { - found = GetTimestampIndex(high, low, fActiveOnly, blockHashes); - } + found = GetTimestampIndex(high, low, fActiveOnly, blockHashes); if (!found) { throw JSONRPCError(RPC_INVALID_ADDRESS_OR_KEY, "No information available for block hashes");