提交 b44f1589 编写于 作者: A antirez

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

上级 d1c1f62e
......@@ -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) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册