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 | 0c2d64d6daf9a9a901a3b67730680e3e97c60f8d (patch) | |
tree | 623a1932c32dcf6cbac9254334690db82ac3816e /lib/custodian/worker.rb | |
parent | 6d95fd2e13f23037bbae89b5627caf53aa346e73 (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 |