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

This commit is contained in:
antirez 2013-10-25 11:49:08 +02:00
parent d1c1f62ed5
commit b44f1589a4

View File

@ -327,8 +327,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) {