1
0
Fork 0
mirror of https://github.com/endofunky/sidetiq.git synced 2022-11-09 13:53:30 -05:00

Fix Ruby parser warnings in web.rb.

This commit is contained in:
Tobias Svensson 2013-08-27 11:38:45 +01:00
parent 03975ed2ce
commit 09d40ab6a1
2 changed files with 4 additions and 3 deletions

View file

@ -4,6 +4,7 @@
- Bump Sidekiq dependency to ~> 2.14.0.
- Use ERB templates instead of slim.
- Don't check if `Sidekiq::Web.tabs` is an Array in Sidetiq::Web.
- Fix Ruby parser warnings in web.rb.
0.3.6
-----

View file

@ -26,7 +26,7 @@ module Sidetiq
@time = sidetiq_clock.gettime
@worker, @schedule = sidetiq_schedules.select do |worker, schedule|
@worker, @schedule = sidetiq_schedules.select do |worker, _|
worker.name == name
end.flatten
@ -36,8 +36,8 @@ module Sidetiq
app.post "/sidetiq/:name/trigger" do
halt 404 unless (name = params[:name])
worker, _ = sidetiq_schedules.select do |worker, schedule|
worker.name == name
worker, _ = sidetiq_schedules.select do |w, _|
w.name == name
end.flatten
worker.perform_async