From 49353d1ce9ac0db153cc2b9e5ed8cff76d58b621 Mon Sep 17 00:00:00 2001 From: Steve Kemp Date: Thu, 16 Apr 2015 16:09:02 +0100 Subject: Mark variables as unused. We've now prefixed our transient/unused variables with "_" to stop any future errors about variables not being used. --- lib/custodian/queue.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/custodian/queue.rb b/lib/custodian/queue.rb index 24411f2..bb67c8e 100644 --- a/lib/custodian/queue.rb +++ b/lib/custodian/queue.rb @@ -65,7 +65,7 @@ module Custodian def flush! raise 'Subclasses must implement this method!' end -end + end @@ -96,7 +96,7 @@ end loop do - foo, job = @redis.blpop('queue', :timeout => timeout) + _foo, job = @redis.blpop('queue', :timeout => timeout) if job return job @@ -164,7 +164,7 @@ end else raise 'ERRROR' end - rescue Beanstalk::TimedOut => ex + rescue Beanstalk::TimedOut => _ex return nil end end -- cgit v1.2.1