Commit 6e55e543 authored by antirez's avatar antirez
Browse files

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

parent 64722b09
......@@ -337,8 +337,6 @@ void scanCommand(redisClient *c) {
sds pat;
int patlen, patnoop = 1;
redisAssert(c->argc >= 2);
/* Use sscanf because we need an *unsigned* long */
rv = sscanf(c->argv[1]->ptr, "%lu", &cursor);
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