modify argument checking

This commit is contained in:
wenyekui 2014-08-01 14:18:07 +08:00
parent 2166c6ff19
commit b5e5b787d6
1 changed files with 2 additions and 2 deletions

View File

@ -210,7 +210,7 @@ func bexpireCommand(req *requestContext) error {
func bexpireatCommand(req *requestContext) error { func bexpireatCommand(req *requestContext) error {
args := req.args args := req.args
if len(args) == 0 { if len(args) != 1 {
return ErrCmdParams return ErrCmdParams
} }
@ -230,7 +230,7 @@ func bexpireatCommand(req *requestContext) error {
func bttlCommand(req *requestContext) error { func bttlCommand(req *requestContext) error {
args := req.args args := req.args
if len(args) == 0 { if len(args) != 1 {
return ErrCmdParams return ErrCmdParams
} }