From e916395f6c328c17abce63b0a69d06c862951f11 Mon Sep 17 00:00:00 2001 From: "zezhou.yu" Date: Thu, 8 Dec 2016 01:29:17 +0800 Subject: [PATCH] evalsha with 0 key should return -1 pos --- command.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/command.go b/command.go index 2bdf8167..11150414 100644 --- a/command.go +++ b/command.go @@ -95,7 +95,7 @@ func cmdFirstKeyPos(cmd Cmder, info *CommandInfo) int { if cmd.arg(2) != "0" { return 3 } else { - return 0 + return -1 } } if info == nil {