mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
- Removed unused variable warnings from ActiveJob Adapters
This commit is contained in:
parent
16c04040f4
commit
8660853770
5 changed files with 5 additions and 5 deletions
|
@ -29,7 +29,7 @@ module BackburnerJobsManager
|
|||
def can_run?
|
||||
begin
|
||||
Backburner::Worker.connection.send :connect!
|
||||
rescue => e
|
||||
rescue
|
||||
return false
|
||||
end
|
||||
true
|
||||
|
|
|
@ -30,7 +30,7 @@ module QuJobsManager
|
|||
def can_run?
|
||||
begin
|
||||
Qu.backend.connection.client.connect
|
||||
rescue => e
|
||||
rescue
|
||||
return false
|
||||
end
|
||||
true
|
||||
|
|
|
@ -41,7 +41,7 @@ module ResqueJobsManager
|
|||
def can_run?
|
||||
begin
|
||||
Resque.redis.client.connect
|
||||
rescue => e
|
||||
rescue
|
||||
return false
|
||||
end
|
||||
true
|
||||
|
|
|
@ -49,7 +49,7 @@ module SidekiqJobsManager
|
|||
def can_run?
|
||||
begin
|
||||
Sidekiq.redis { |conn| conn.connect }
|
||||
rescue => e
|
||||
rescue
|
||||
return false
|
||||
end
|
||||
true
|
||||
|
|
|
@ -68,7 +68,7 @@ module SneakersJobsManager
|
|||
def can_run?
|
||||
begin
|
||||
bunny_publisher
|
||||
rescue => e
|
||||
rescue
|
||||
return false
|
||||
end
|
||||
true
|
||||
|
|
Loading…
Reference in a new issue