diff options
author | Steve Kemp <steve@steve.org.uk> | 2015-03-09 13:10:32 +0000 |
---|---|---|
committer | Steve Kemp <steve@steve.org.uk> | 2015-03-09 13:10:32 +0000 |
commit | fea454753efc4a673751131960c394254555d34a (patch) | |
tree | 47732a1c331c236f8f082dc4f6f5a6c6d6dab058 /bin/custodian-enqueue | |
parent | edf0e675123e4869e2739d1bab0ed57b3b9f664c (diff) |
Don't use parenthesis aroudn conditions in an if.
Diffstat (limited to 'bin/custodian-enqueue')
-rwxr-xr-x | bin/custodian-enqueue | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/custodian-enqueue b/bin/custodian-enqueue index 568c0d6..b1be84d 100755 --- a/bin/custodian-enqueue +++ b/bin/custodian-enqueue @@ -131,7 +131,7 @@ if __FILE__ == $PROGRAM_NAME then # settings = Custodian::Settings.instance queue = Custodian::QueueType.create( settings.queue_type ) - if ( ! queue ) + if ! queue puts "Failed to connect to the #{settings.queue_type} queue" exit 1 end @@ -157,9 +157,9 @@ if __FILE__ == $PROGRAM_NAME then mon.jobs.each do |test| - if ( ENV['TEST'] ) + if ENV['TEST'] # nop - elsif ( ENV['DUMP'] ) + elsif ENV['DUMP'] puts test else queue.add( test.to_s ) |