diff options
author | Steve Kemp <steve@steve.org.uk> | 2015-03-09 13:19:47 +0000 |
---|---|---|
committer | Steve Kemp <steve@steve.org.uk> | 2015-03-09 13:19:47 +0000 |
commit | 54b21cf54c51dfe40784a8096f84c7a80b015bd4 (patch) | |
tree | 4763692624732650daf1a9e02c91576d3f7ee8d0 /lib/custodian/protocoltest/mx.rb | |
parent | a22b8e96ead33b0f97ed5243dbad7f7b6cd5135d (diff) |
Removed spaces inside parenthesis.
Diffstat (limited to 'lib/custodian/protocoltest/mx.rb')
-rw-r--r-- | lib/custodian/protocoltest/mx.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/custodian/protocoltest/mx.rb b/lib/custodian/protocoltest/mx.rb index 61e838c..a9cac62 100644 --- a/lib/custodian/protocoltest/mx.rb +++ b/lib/custodian/protocoltest/mx.rb @@ -20,7 +20,7 @@ module Custodian # # Constructor # - def initialize( line ) + def initialize(line) # Save the line away @line = line @@ -69,11 +69,11 @@ module Custodian # Lookup the MX record # begin - timeout( period ) do + timeout(period) do Resolv::DNS.open do |dns| ress = dns.getresources(@host, Resolv::DNS::Resource::IN::MX) - ress.map { |r| mx.push( IPSocket.getaddress(r.exchange.to_s) ) } + ress.map { |r| mx.push(IPSocket.getaddress(r.exchange.to_s)) } end end rescue Timeout::Error => e @@ -110,7 +110,7 @@ module Custodian begin timeout(period) do begin - socket = TCPSocket.new( backend, 25 ) + socket = TCPSocket.new(backend, 25) read = socket.sysread(1024) # trim to a sane length & strip newlines. |