From b5e5b787d6e81f668ffeb15d26695240294b36b3 Mon Sep 17 00:00:00 2001 From: wenyekui Date: Fri, 1 Aug 2014 14:18:07 +0800 Subject: [PATCH] modify argument checking --- server/cmd_bit.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/cmd_bit.go b/server/cmd_bit.go index d95e416..a7b9d1a 100644 --- a/server/cmd_bit.go +++ b/server/cmd_bit.go @@ -210,7 +210,7 @@ func bexpireCommand(req *requestContext) error { func bexpireatCommand(req *requestContext) error { args := req.args - if len(args) == 0 { + if len(args) != 1 { return ErrCmdParams } @@ -230,7 +230,7 @@ func bexpireatCommand(req *requestContext) error { func bttlCommand(req *requestContext) error { args := req.args - if len(args) == 0 { + if len(args) != 1 { return ErrCmdParams }