Skip to content

Commit

Permalink
Make rubocop happy
Browse files Browse the repository at this point in the history
  • Loading branch information
albus522 committed Sep 24, 2014
1 parent ae0ca0a commit a8fc903
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions lib/delayed/backend/base.rb
Original file line number Diff line number Diff line change
Expand Up @@ -130,12 +130,12 @@ def max_attempts

def max_run_time
return unless payload_object.respond_to?(:max_run_time)
if (run_time = payload_object.max_run_time)
if run_time > Delayed::Worker.max_run_time
Delayed::Worker.max_run_time
else
run_time
end
return unless (run_time = payload_object.max_run_time)

if run_time > Delayed::Worker.max_run_time
Delayed::Worker.max_run_time
else
run_time
end
end

Expand Down

0 comments on commit a8fc903

Please sign in to comment.