summaryrefslogtreecommitdiff
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
commit86bec93b9db4690a862cf6aa8fa51ae480a8dc0e (patch)
treef6d185ace9d6eb271f6a34b14c00898f0b283130
parente64bb30bc904a25d4136c3d5c551449747c18eb7 (diff)
Mark variables as unused.
We've now prefixed our transient/unused variables with "_" to stop any future errors about variables not being used.
-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