diff options
| -rwxr-xr-x | worker/tests/http.rb | 5 | ||||
| -rwxr-xr-x | worker/tests/https.rb | 4 | 
2 files changed, 4 insertions, 5 deletions
| diff --git a/worker/tests/http.rb b/worker/tests/http.rb index 3796412..3988606 100755 --- a/worker/tests/http.rb +++ b/worker/tests/http.rb @@ -26,7 +26,7 @@ class HTTPTest    #    def initialize( data )      @test_data = data -    @error = nil +    @error     = nil      #      # Ensure we have an URL @@ -42,7 +42,6 @@ class HTTPTest      if ( @test_data["test_port"].nil? )        @error = "Missing port for the test."        raise ArgumentError, @error -      end    end @@ -87,7 +86,7 @@ class HTTPTest          end        end -      return true if ( @error.length() == 0 ) +      return true if ( @error.nil? )        return false      end diff --git a/worker/tests/https.rb b/worker/tests/https.rb index 55a423b..f0e4f4c 100755 --- a/worker/tests/https.rb +++ b/worker/tests/https.rb @@ -26,7 +26,7 @@ class HTTPSTest    #    def initialize( data )      @test_data = data -    @error = nil +    @error     = nil      #      # Ensure we have an URL @@ -87,7 +87,7 @@ class HTTPSTest          end        end -      return true if ( @error.length() == 0 ) +      return true if ( @error.nil? )        return false      end | 
