Skip to content

Commit

Permalink
Fix warning.
Browse files Browse the repository at this point in the history
  • Loading branch information
stefansundin committed Sep 18, 2020
1 parent 10c83d2 commit 40fc975
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/initializers/05-airbrake.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
notice[:errors].each do |e|
if Object.const_get(e[:type]) <= HTTPError
throttle_key = "airbrake_throttle:#{e[:type]}"
if $redis.exists(throttle_key)
if $redis.exists?(throttle_key)
notice.ignore!
$redis.incr(throttle_key)
puts "Throttling reporting #{e[:type]} to Airbrake. Throttle counter: #{$redis.get(throttle_key)}."
Expand Down

0 comments on commit 40fc975

Please sign in to comment.