Skip to content

Commit b9f5d1f

Browse files
practicalswiftrandom-zebra
authored andcommitted
Remove duplicate uriParts.size() > 0 check
1 parent 440d961 commit b9f5d1f

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/rest.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -395,10 +395,8 @@ static bool rest_getutxos(HTTPRequest* req, const std::string& strURIPart)
395395

396396
if (uriParts.size() > 0)
397397
{
398-
399398
//inputs is sent over URI scheme (/rest/getutxos/checkmempool/txid1-n/txid2-n/...)
400-
if (uriParts.size() > 0 && uriParts[0] == "checkmempool")
401-
fCheckMemPool = true;
399+
if (uriParts[0] == "checkmempool") fCheckMemPool = true;
402400

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

0 commit comments

Comments
 (0)