From 0c2d64d6daf9a9a901a3b67730680e3e97c60f8d Mon Sep 17 00:00:00 2001 From: Steve Kemp Date: Mon, 9 Mar 2015 13:21:36 +0000 Subject: Whitespace fixups. These were all identified and suggested by rubocop. --- lib/custodian/protocoltest/mx.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/custodian/protocoltest/mx.rb') diff --git a/lib/custodian/protocoltest/mx.rb b/lib/custodian/protocoltest/mx.rb index a9cac62..c323af7 100644 --- a/lib/custodian/protocoltest/mx.rb +++ b/lib/custodian/protocoltest/mx.rb @@ -114,7 +114,7 @@ module Custodian read = socket.sysread(1024) # trim to a sane length & strip newlines. - if ! read.nil? + if !read.nil? read = read[0,255] read.gsub!(/[\n\r]/, '') end @@ -126,13 +126,13 @@ module Custodian end rescue # Failure to connect. - failed +=1 + failed += 1 error += "Error connecting to #{backend}:25. " end end rescue Timeout::Error => ex # Timeout - failed +=1 + failed += 1 error += "Timeout connecting to #{backend}:25. " end end -- cgit v1.2.1