minor fix to RubyRedis about bulk commands sent without arguments

This commit is contained in:
antirez
2009-05-25 21:30:20 +02:00
parent 8cca9b8277
commit 0b420168b4
3 changed files with 7 additions and 3 deletions

View File

@ -152,7 +152,7 @@ class RedisClient
bulk = nil
argv[0] = argv[0].to_s.downcase
argv[0] = Aliases[argv[0]] if Aliases[argv[0]]
if BulkCommands[argv[0]]
if BulkCommands[argv[0]] and argv.length > 1
bulk = argv[-1].to_s
argv[-1] = bulk.length
end