summaryrefslogtreecommitdiff
path: root/lib/custodian/protocoltest
diff options
context:
space:
mode:
authorSteve Kemp <steve@steve.org.uk>2015-03-09 13:15:06 +0000
committerSteve Kemp <steve@steve.org.uk>2015-03-09 13:15:06 +0000
commit48e66ecec133ef348c0a46b80998230116121f3b (patch)
tree98484eb8680894990229e77e9f3004fed6836017 /lib/custodian/protocoltest
parent82171c3406a790ac9740c439e2aafce21853e0a0 (diff)
Do not terminate expressions with ";".
Ruby is not Perl, much as I sometimes wish it were.
Diffstat (limited to 'lib/custodian/protocoltest')
-rw-r--r--lib/custodian/protocoltest/mx.rb2
-rw-r--r--lib/custodian/protocoltest/ssl.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/custodian/protocoltest/mx.rb b/lib/custodian/protocoltest/mx.rb
index b77e596..0df1b5d 100644
--- a/lib/custodian/protocoltest/mx.rb
+++ b/lib/custodian/protocoltest/mx.rb
@@ -144,7 +144,7 @@ module Custodian
@error = "There are #{mx.size} hosts running as MX-servers for domain #{@host} - #{passed}:OK #{failed}:FAILED - #{error}"
return false
else
- return true;
+ return true
end
end
diff --git a/lib/custodian/protocoltest/ssl.rb b/lib/custodian/protocoltest/ssl.rb
index 9f65712..86acb34 100644
--- a/lib/custodian/protocoltest/ssl.rb
+++ b/lib/custodian/protocoltest/ssl.rb
@@ -427,7 +427,7 @@ module Custodian
return true
else
puts( "SSL Verification for #{@host} has failed." )
- @error = "SSL Verification for #{@host} failed: ";
+ @error = "SSL Verification for #{@host} failed: "
@error += s.errors.join("\n")
return false
end