1
0
Fork 0
mirror of https://github.com/mperham/sidekiq.git synced 2022-11-09 13:52:34 -05:00

Explicitly test false to avoid warning on Ruby 2.0, fixes #869

This commit is contained in:
Mike Perham 2013-04-24 10:53:02 -07:00
parent 16a6eb8783
commit 3eb6ad457c

View file

@ -69,6 +69,8 @@ module Sidekiq
if msg['backtrace'] == true
msg['error_backtrace'] = e.backtrace
elsif msg['backtrace'] == false
# do nothing
elsif msg['backtrace'].to_i != 0
msg['error_backtrace'] = e.backtrace[0..msg['backtrace'].to_i]
end