Browse Source

Remove duplicate uriParts.size() > 0 check

0.16
practicalswift 7 years ago
parent
commit
b5fb33943f
  1. 4
      src/rest.cpp

4
src/rest.cpp

@ -409,10 +409,8 @@ static bool rest_getutxos(HTTPRequest* req, const std::string& strURIPart)
if (uriParts.size() > 0) if (uriParts.size() > 0)
{ {
//inputs is sent over URI scheme (/rest/getutxos/checkmempool/txid1-n/txid2-n/...) //inputs is sent over URI scheme (/rest/getutxos/checkmempool/txid1-n/txid2-n/...)
if (uriParts.size() > 0 && uriParts[0] == "checkmempool") if (uriParts[0] == "checkmempool") fCheckMemPool = true;
fCheckMemPool = true;
for (size_t i = (fCheckMemPool) ? 1 : 0; i < uriParts.size(); i++) for (size_t i = (fCheckMemPool) ? 1 : 0; i < uriParts.size(); i++)
{ {

Loading…
Cancel
Save