summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorSteve Kemp <steve@steve.org.uk>2015-04-16 16:09:02 +0100
committerSteve Kemp <steve@steve.org.uk>2015-04-16 16:09:02 +0100
commit49353d1ce9ac0db153cc2b9e5ed8cff76d58b621 (patch)
tree4b9b22ed9db0055892050fd79752bca7a43220d6 /lib
parenta1c495fd685782e381c027e7f329a14cc01c8dca (diff)
Mark variables as unused.
We've now prefixed our transient/unused variables with "_" to stop any future errors about variables not being used.
Diffstat (limited to 'lib')
-rw-r--r--lib/custodian/queue.rb6
1 files 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