Skip to content

Commit cfc281a

Browse files
committed
Avoid flatten.
1 parent 8afc0ed commit cfc281a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/redis.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2036,7 +2036,7 @@ def punsubscribe(*channels)
20362036
# Possible subcommands: channels, numsub, numpat.
20372037
def pubsub(subcommand, *args)
20382038
synchronize do |client|
2039-
client.call([:pubsub, subcommand, args].flatten)
2039+
client.call([:pubsub, subcommand] + args)
20402040
end
20412041
end
20422042

0 commit comments

Comments
 (0)