Skip to content

Commit

Permalink
Removing some un-need comments and correcting a typo
Browse files Browse the repository at this point in the history
  • Loading branch information
jaredonline committed Apr 14, 2013
1 parent f71fb8a commit 1b76fc1
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/resque/job_performer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,17 @@ class JobPerformer
# hook: A hash with keys :before, :after and :around, all arrays of
# methods to call on the payload class with args
def perform(payload_class, args, hooks)
# Setup instance variables for the helper methods
@job = payload_class
@job_args = args || []
@hooks = hooks

# Before hooks can raise a Resque::DontPerform exception
# before_hooks can raise a Resque::DontPerform exception
# in which case we exit this method, returning false (because
# the job was never performed)
return false unless call_before_hooks
execute_job
call_hooks(:after)

# Return whether or not the job was performed
performed?
end

Expand Down

0 comments on commit 1b76fc1

Please sign in to comment.