remove unnecessary redeclaration

This commit is contained in:
Jon Fu 2022-11-14 16:39:13 -08:00
parent a93eda244f
commit 2985b255fa
1 changed files with 0 additions and 2 deletions

View File

@ -106,7 +106,6 @@ bool parseTenantListOptions(std::vector<StringRef> const& tokens,
}
value = token;
if (tokencmp(param, "limit")) {
int limit = 0;
int n = 0;
if (sscanf(value.get().toString().c_str(), "%d%n", &limit, &n) != 1 || n != value.get().size() ||
limit <= 0) {
@ -114,7 +113,6 @@ bool parseTenantListOptions(std::vector<StringRef> const& tokens,
return false;
}
} else if (tokencmp(param, "offset")) {
int offset = 0;
int n = 0;
if (sscanf(value.get().toString().c_str(), "%d%n", &offset, &n) != 1 || n != value.get().size() ||
offset < 0) {