summaryrefslogtreecommitdiff
path: root/lib/custodian/util/dns.rb
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 /lib/custodian/util/dns.rb
parentedf0e675123e4869e2739d1bab0ed57b3b9f664c (diff)
Don't use parenthesis aroudn conditions in an if.
Diffstat (limited to 'lib/custodian/util/dns.rb')
-rw-r--r--lib/custodian/util/dns.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/custodian/util/dns.rb b/lib/custodian/util/dns.rb
index 9cbbf59..2a0c705 100644
--- a/lib/custodian/util/dns.rb
+++ b/lib/custodian/util/dns.rb
@@ -61,7 +61,7 @@ module Custodian
timeout( period ) do
begin
Socket.getaddrinfo(hostname, 'echo').each do |a|
- resolved = a[3] if ( a )
+ resolved = a[3] if a
end
rescue SocketError
resolved = nil