From 41c6ed7b50603f5232cfe3a59a704e84c0f97d79 Mon Sep 17 00:00:00 2001 From: Steve Kemp Date: Mon, 9 Mar 2015 14:44:15 +0000 Subject: Updated to test for more whitespace issues. --- lib/custodian/protocoltest/ssl.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/custodian/protocoltest/ssl.rb') diff --git a/lib/custodian/protocoltest/ssl.rb b/lib/custodian/protocoltest/ssl.rb index 5e14329..f2baf67 100644 --- a/lib/custodian/protocoltest/ssl.rb +++ b/lib/custodian/protocoltest/ssl.rb @@ -77,7 +77,7 @@ class SSLCheck # def tests=(ts) raise ArgumentError, 'tests must be an Array' unless ts.is_a?(Array) - @tests = ts.collect{|t| t.to_sym}.select{|t| ALL_TESTS.include?(t)} + @tests = ts.collect { |t| t.to_sym }.select { |t| ALL_TESTS.include?(t) } @tests end @@ -200,7 +200,7 @@ class SSLCheck self.errors << verbose("Failed to fetch certificate for #{self.domain}") return nil else - return ![verify_subject, verify_valid_from, verify_valid_to, verify_signature].any?{|r| false == r} + return ![verify_subject, verify_valid_from, verify_valid_to, verify_signature].any? { |r| false == r } end end -- cgit v1.2.1