From b9f5d1f59fcccb9aeb06555b6c88df35cf5443bd Mon Sep 17 00:00:00 2001 From: practicalswift Date: Fri, 21 Jul 2017 18:52:52 +0200 Subject: [PATCH] Remove duplicate uriParts.size() > 0 check --- src/rest.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/rest.cpp b/src/rest.cpp index 3f3755ff1c8ad..753ec65d7a834 100644 --- a/src/rest.cpp +++ b/src/rest.cpp @@ -395,10 +395,8 @@ static bool rest_getutxos(HTTPRequest* req, const std::string& strURIPart) if (uriParts.size() > 0) { - //inputs is sent over URI scheme (/rest/getutxos/checkmempool/txid1-n/txid2-n/...) - if (uriParts.size() > 0 && uriParts[0] == "checkmempool") - fCheckMemPool = true; + if (uriParts[0] == "checkmempool") fCheckMemPool = true; for (size_t i = (fCheckMemPool) ? 1 : 0; i < uriParts.size(); i++) {