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

This commit is contained in:
antirez 2013-10-25 11:49:08 +02:00
parent 64722b0946
commit 6e55e543c6

View File

@ -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) {