Commit b44f1589 authored by antirez's avatar antirez
Browse files

SCAN: remove useless assertion, already enforced by command table.

parent d1c1f62e
...@@ -327,8 +327,6 @@ void scanCommand(redisClient *c) { ...@@ -327,8 +327,6 @@ void scanCommand(redisClient *c) {
sds pat; sds pat;
int patlen, patnoop = 1; int patlen, patnoop = 1;
redisAssert(c->argc >= 2);
/* Use sscanf because we need an *unsigned* long */ /* Use sscanf because we need an *unsigned* long */
rv = sscanf(c->argv[1]->ptr, "%lu", &cursor); rv = sscanf(c->argv[1]->ptr, "%lu", &cursor);
if (rv != 1) { if (rv != 1) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment