From 1b76fc176c769902b661768b6e1540d1cbda4631 Mon Sep 17 00:00:00 2001 From: Jared McFarland Date: Sun, 14 Apr 2013 15:29:38 -0700 Subject: [PATCH] Removing some un-need comments and correcting a typo --- lib/resque/job_performer.rb | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/resque/job_performer.rb b/lib/resque/job_performer.rb index 743d360c9..c613ead68 100644 --- a/lib/resque/job_performer.rb +++ b/lib/resque/job_performer.rb @@ -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