mirror of
https://github.com/mperham/sidekiq.git
synced 2022-11-09 13:52:34 -05:00
Fix ruby warnings
This commit is contained in:
parent
73390eab98
commit
2141e3c7c1
1 changed files with 3 additions and 3 deletions
|
@ -92,8 +92,8 @@ module Sidekiq
|
||||||
end
|
end
|
||||||
|
|
||||||
Sidekiq.redis do |conn|
|
Sidekiq.redis do |conn|
|
||||||
conn.mget(keys).each_with_index do |value, i|
|
conn.mget(keys).each_with_index do |value, idx|
|
||||||
stat_hash[dates[i].to_s] = value ? value.to_i : 0
|
stat_hash[dates[idx].to_s] = value ? value.to_i : 0
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -267,7 +267,7 @@ module Sidekiq
|
||||||
|
|
||||||
def safe_load(content, default)
|
def safe_load(content, default)
|
||||||
begin
|
begin
|
||||||
yield *YAML.load(content)
|
yield(*YAML.load(content))
|
||||||
rescue ::ArgumentError => ex
|
rescue ::ArgumentError => ex
|
||||||
# #1761 in dev mode, it's possible to have jobs enqueued which haven't been loaded into
|
# #1761 in dev mode, it's possible to have jobs enqueued which haven't been loaded into
|
||||||
# memory yet so the YAML can't be loaded.
|
# memory yet so the YAML can't be loaded.
|
||||||
|
|
Loading…
Add table
Reference in a new issue