summaryrefslogtreecommitdiff
path: root/lib/custodian/protocoltest/ssl.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/protocoltest/ssl.rb
parentedf0e675123e4869e2739d1bab0ed57b3b9f664c (diff)
Don't use parenthesis aroudn conditions in an if.
Diffstat (limited to 'lib/custodian/protocoltest/ssl.rb')
-rw-r--r--lib/custodian/protocoltest/ssl.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/custodian/protocoltest/ssl.rb b/lib/custodian/protocoltest/ssl.rb
index 4929f7b..67af348 100644
--- a/lib/custodian/protocoltest/ssl.rb
+++ b/lib/custodian/protocoltest/ssl.rb
@@ -390,7 +390,7 @@ module Custodian
#
# If the line disables us then return early
#
- if ( @line =~ /no_ssl_check/ )
+ if @line =~ /no_ssl_check/
return true
end
@@ -403,7 +403,7 @@ module Custodian
#
# If outside 10AM-5PM we don't run the test.
#
- if ( hour < 10 || hour > 17 )
+ if hour < 10 || hour > 17
puts( "Outside office hours - Not running SSL-Verification of #{@host}" )
return true
end
@@ -411,7 +411,7 @@ module Custodian
#
# Double-check we've got an SSL host
#
- if ( ! @host =~ /^https:\/\// )
+ if ! @host =~ /^https:\/\//
puts( "Not an SSL URL" )
return true
end