Skip to content

Commit

Permalink
fix failure introduced by d1cfe4d
Browse files Browse the repository at this point in the history
  • Loading branch information
defunkt committed Jul 14, 2011
1 parent 1f1ff49 commit 7b1ceea
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/resque/failure/redis.rb
Expand Up @@ -43,7 +43,8 @@ def self.remove(index)
end

def filter_backtrace(backtrace)
backtrace.first(backtrace.index {|item| item.include?('/lib/resque/job.rb')})
index = backtrace.index { |item| item.include?('/lib/resque/job.rb') }
backtrace.first(index.to_i)
end
end
end
Expand Down

0 comments on commit 7b1ceea

Please sign in to comment.