From 1ce0906b3480702085d4596dbb4758c115ab298f Mon Sep 17 00:00:00 2001 From: Steve Kemp Date: Mon, 9 Mar 2015 13:10:32 +0000 Subject: Don't use parenthesis aroudn conditions in an if. --- bin/custodian-enqueue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'bin/custodian-enqueue') 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 ) -- cgit v1.2.1