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/multi-ping | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bin/multi-ping') diff --git a/bin/multi-ping b/bin/multi-ping index 9833215..9760b35 100755 --- a/bin/multi-ping +++ b/bin/multi-ping @@ -105,7 +105,7 @@ hostname = ARGV.shift # # Abort if we don't have a hostname # -if ( hostname.nil? ) +if hostname.nil? puts "Usage: #{$PROGRAM_NAME} hostname" exit 1 end @@ -121,7 +121,7 @@ helper = Custodian::Util::Ping.new( hostname ) # # Ping the host, via the helper # -if ( helper.run_ping ) +if helper.run_ping puts "#{hostname} - #{helper.address} - is alive." exit 0 else -- cgit v1.2.1