Skip to content

Commit

Permalink
Fix ruby warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
mperham committed Jan 12, 2015
1 parent 73390ea commit 2141e3c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/sidekiq/api.rb
Expand Up @@ -92,8 +92,8 @@ def date_stat_hash(stat)
end

Sidekiq.redis do |conn|
conn.mget(keys).each_with_index do |value, i|
stat_hash[dates[i].to_s] = value ? value.to_i : 0
conn.mget(keys).each_with_index do |value, idx|
stat_hash[dates[idx].to_s] = value ? value.to_i : 0
end
end

Expand Down Expand Up @@ -267,7 +267,7 @@ def [](name)

def safe_load(content, default)
begin
yield *YAML.load(content)
yield(*YAML.load(content))
rescue ::ArgumentError => ex
# #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.
Expand Down

0 comments on commit 2141e3c

Please sign in to comment.