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 }