Skip to content

Commit e7d3ec9

Browse files
committed
change var name to @failure_hook_ran
1 parent c3627fc commit e7d3ec9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/resque/job.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class Job
3232
def initialize(queue, payload)
3333
@queue = queue
3434
@payload = payload
35-
@failure_hooks_already_ran = false
35+
@failure_hooks_ran = false
3636
end
3737

3838
# Creates a job by placing it on a queue. Expects a string queue
@@ -217,9 +217,9 @@ def failure_hooks
217217

218218
def run_failure_hooks(exception)
219219
begin
220-
failure_hooks.each { |hook| payload_class.send(hook, exception, *Array.wrap(args)) } unless @failure_hooks_already_ran
220+
failure_hooks.each { |hook| payload_class.send(hook, exception, *Array.wrap(args)) } unless @failure_hooks_ran
221221
ensure
222-
@failure_hooks_already_ran = true
222+
@failure_hooks_ran = true
223223
end
224224
end
225225
end

0 commit comments

Comments
 (0)