From 0c2d64d6daf9a9a901a3b67730680e3e97c60f8d Mon Sep 17 00:00:00 2001 From: Steve Kemp Date: Mon, 9 Mar 2015 13:21:36 +0000 Subject: Whitespace fixups. These were all identified and suggested by rubocop. --- lib/custodian/queue.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/custodian/queue.rb') diff --git a/lib/custodian/queue.rb b/lib/custodian/queue.rb index e9ba830..51d3a3c 100644 --- a/lib/custodian/queue.rb +++ b/lib/custodian/queue.rb @@ -94,7 +94,7 @@ end def fetch(timeout = 1) job = nil - while(true) + loop do foo, job = @redis.blpop('queue', :timeout => timeout) @@ -191,7 +191,7 @@ end # Flush the queue, discarding all pending jobs. # def flush! - while(fetch(1)) + while fetch(1) # nop end end -- cgit v1.2.1