Get rid of redundant RPC params.size() checks

No change in behavior.
This commit is contained in:
Russell Yanofsky
2017-08-14 19:38:18 -04:00
parent c2704ec98a
commit e666efcdba
6 changed files with 33 additions and 33 deletions

View File

@@ -842,7 +842,7 @@ UniValue estimatesmartfee(const JSONRPCRequest& request)
RPCTypeCheckArgument(request.params[0], UniValue::VNUM);
unsigned int conf_target = ParseConfirmTarget(request.params[0]);
bool conservative = true;
if (request.params.size() > 1 && !request.params[1].isNull()) {
if (!request.params[1].isNull()) {
FeeEstimateMode fee_mode;
if (!FeeModeFromString(request.params[1].get_str(), fee_mode)) {
throw JSONRPCError(RPC_INVALID_PARAMETER, "Invalid estimate_mode parameter");