diff options
author | Steve Kemp <steve@steve.org.uk> | 2015-03-09 13:21:36 +0000 |
---|---|---|
committer | Steve Kemp <steve@steve.org.uk> | 2015-03-09 13:21:36 +0000 |
commit | d07ac8ecbedb4831e5aa677b8878f0e8eb37e363 (patch) | |
tree | f7bc6a6fdd381ffa7d73f487d3f10f6e65a798e4 /lib/custodian/worker.rb | |
parent | 16b766cff0984494c7b81c1efc08e6386ae819f8 (diff) |
Whitespace fixups.
These were all identified and suggested by rubocop.
Diffstat (limited to 'lib/custodian/worker.rb')
-rw-r--r-- | lib/custodian/worker.rb | 10 |
1 files changed, 5 insertions, 5 deletions
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 |