diff options
author | practicalswift <practicalswift@users.noreply.github.com> | 2017-07-21 18:52:52 +0200 |
---|---|---|
committer | practicalswift <practicalswift@users.noreply.github.com> | 2017-10-02 15:47:44 +0200 |
commit | b5fb33943fd6222571d13f8247fc611ebe2ba8c6 (patch) | |
tree | ece437079f7af214663f2151e44de12d8cc624b1 /src/rest.cpp | |
parent | 74669916709e5429990df120c6ba84ac60791b30 (diff) |
Remove duplicate uriParts.size() > 0 check
Diffstat (limited to 'src/rest.cpp')
-rw-r--r-- | src/rest.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/rest.cpp b/src/rest.cpp index 0b2c843d5f..4d2cdfdf08 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++) { |