Skip to content

Commit b5fb339

Browse files
committedOct 2, 2017
Remove duplicate uriParts.size() > 0 check
1 parent 7466991 commit b5fb339

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed
 

‎src/rest.cpp

+1-3
Original file line numberDiff line numberDiff line change
@@ -409,10 +409,8 @@ static bool rest_getutxos(HTTPRequest* req, const std::string& strURIPart)
409409

410410
if (uriParts.size() > 0)
411411
{
412-
413412
//inputs is sent over URI scheme (/rest/getutxos/checkmempool/txid1-n/txid2-n/...)
414-
if (uriParts.size() > 0 && uriParts[0] == "checkmempool")
415-
fCheckMemPool = true;
413+
if (uriParts[0] == "checkmempool") fCheckMemPool = true;
416414

417415
for (size_t i = (fCheckMemPool) ? 1 : 0; i < uriParts.size(); i++)
418416
{

0 commit comments

Comments
 (0)