Use splat operator instead of array-wrapping
This commit is contained in:
parent
129278fa57
commit
52b67313cc
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue