diff options
author | Steve Kemp <steve@steve.org.uk> | 2016-04-22 21:54:51 +0300 |
---|---|---|
committer | Steve Kemp <steve@steve.org.uk> | 2016-04-22 21:54:51 +0300 |
commit | a5ad0029b634a19d4d50e9f49c51903c2fa82208 (patch) | |
tree | 869a46ea45f511952f38dee10f9db76aab8e8a68 /lib/custodian/queue.rb | |
parent | 85a9a63eb5d8690fd7945bba901b10ef8c3326c9 (diff) |
More rubocop fixups.
These are again mostly based around whitespace-changes.
Diffstat (limited to 'lib/custodian/queue.rb')
-rw-r--r-- | lib/custodian/queue.rb | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/custodian/queue.rb b/lib/custodian/queue.rb index 7caad1a..9c33825 100644 --- a/lib/custodian/queue.rb +++ b/lib/custodian/queue.rb @@ -88,7 +88,7 @@ module Custodian job = job[0] # Remove from the queue - @redis.zrem('zset', job ); + @redis.zrem('zset', job) return job else @@ -110,7 +110,7 @@ module Custodian # Count the number of times we attempt to add the test # attempts = 0 - added = false + added = false # @@ -119,12 +119,12 @@ module Custodian # (a) the score is missing # (b) the zadd function succeeds # - while( attempts < 40 ) do + while (attempts < 40) do # # Only update if no score is set # - if !@redis.zscore("zset", test) + if !@redis.zscore('zset', test) # # If MULTI returns nil, the transaction failed, so we need to try @@ -144,7 +144,7 @@ module Custodian # # Bump the count of attempts. # - attempts = attempts + 1 + attempts += 1 end # |