aboutsummaryrefslogtreecommitdiff
path: root/src/rest.cpp
diff options
context:
space:
mode:
authorpracticalswift <[email protected]>2017-07-21 18:52:52 +0200
committerpracticalswift <[email protected]>2017-10-02 15:47:44 +0200
commitb5fb33943fd6222571d13f8247fc611ebe2ba8c6 (patch)
treeece437079f7af214663f2151e44de12d8cc624b1 /src/rest.cpp
parentRemove redundant check (!ecc is always true) (diff)
downloaddiscoin-b5fb33943fd6222571d13f8247fc611ebe2ba8c6.tar.xz
discoin-b5fb33943fd6222571d13f8247fc611ebe2ba8c6.zip
Remove duplicate uriParts.size() > 0 check
Diffstat (limited to 'src/rest.cpp')
-rw-r--r--src/rest.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/rest.cpp b/src/rest.cpp
index 0b2c843d5..4d2cdfdf0 100644
--- a/src/rest.cpp
+++ b/src/rest.cpp
@@ -409,10 +409,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++)
{