1
0
Fork 0

Use splat operator instead of array-wrapping

This commit is contained in:
Gregory Eremin 2014-08-16 16:55:39 +07:00
parent 129278fa57
commit 52b67313cc
1 changed files with 1 additions and 2 deletions

View File

@ -23,8 +23,7 @@ module Burlesque
res.body == OK res.body == OK
end end
def subscribe queues def subscribe *queues
queues = Array(queues)
req = Net::HTTP::Get.new("#{SUB_ENDPOINT}?queues=#{queues.join(?,)}") req = Net::HTTP::Get.new("#{SUB_ENDPOINT}?queues=#{queues.join(?,)}")
begin begin