From d07ac8ecbedb4831e5aa677b8878f0e8eb37e363 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/worker.rb | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'lib/custodian/worker.rb') diff --git a/lib/custodian/worker.rb b/lib/custodian/worker.rb index 746416f..701110e 100644 --- a/lib/custodian/worker.rb +++ b/lib/custodian/worker.rb @@ -79,7 +79,7 @@ module Custodian @alerter = @settings.alerter # How many times to repeat a failing test - @retry_count=@settings.retries + @retry_count = @settings.retries # Should we sleep between repeated tests? @retry_delay = @settings.retry_delay @@ -103,7 +103,7 @@ module Custodian # Process jobs from the queue - never return. # def run! - while(true) + loop do log_message('Waiting for job..') process_single_job end @@ -170,7 +170,7 @@ module Custodian # Run the test - inverting the result if we should # result = test.run_test - result = ! result if test.inverted + result = !result if test.inverted if result log_message('Test succeeed - clearing alert') @@ -218,7 +218,7 @@ module Custodian # # If we didn't succeed on any of the attempts raise the alert. # - if ! result + if !result # # Raise the alert, passing the error message. @@ -300,7 +300,7 @@ module Custodian # Process jobs until we see a failure, then stop. # def process_until_fail - while(process_single_job) + while process_single_job # nop end end -- cgit v1.2.1