summaryrefslogtreecommitdiff
path: root/bin/multi-ping
diff options
context:
space:
mode:
authorSteve Kemp <steve@steve.org.uk>2015-03-09 13:10:32 +0000
committerSteve Kemp <steve@steve.org.uk>2015-03-09 13:10:32 +0000
commitfea454753efc4a673751131960c394254555d34a (patch)
tree47732a1c331c236f8f082dc4f6f5a6c6d6dab058 /bin/multi-ping
parentedf0e675123e4869e2739d1bab0ed57b3b9f664c (diff)
Don't use parenthesis aroudn conditions in an if.
Diffstat (limited to 'bin/multi-ping')
-rwxr-xr-xbin/multi-ping4
1 files changed, 2 insertions, 2 deletions
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