Skip to content

Commit

Permalink
Remove duplicate uriParts.size() > 0 check
Browse files Browse the repository at this point in the history
  • Loading branch information
practicalswift authored and random-zebra committed Jul 25, 2021
1 parent 440d961 commit b9f5d1f
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/rest.cpp
Expand Up @@ -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++)
{
Expand Down

0 comments on commit b9f5d1f

Please sign in to comment.