[Groonga-commit] droonga/drntest at ee30fbc [master] Format nil as an empty string

Back to archive index

Kouhei Sutou null+****@clear*****
Thu Dec 26 17:45:17 JST 2013


Kouhei Sutou	2013-12-26 17:45:17 +0900 (Thu, 26 Dec 2013)

  New Revision: ee30fbc27f7c60330e85a9db9aa27a879c3872f3
  https://github.com/droonga/drntest/commit/ee30fbc27f7c60330e85a9db9aa27a879c3872f3

  Message:
    Format nil as an empty string

  Modified files:
    lib/drntest/test-runner.rb

  Modified: lib/drntest/test-runner.rb (+1 -0)
===================================================================
--- lib/drntest/test-runner.rb    2013-12-26 17:43:30 +0900 (b4bc57c)
+++ lib/drntest/test-runner.rb    2013-12-26 17:45:17 +0900 (3ae0946)
@@ -247,6 +247,7 @@ module Drntest
     end
 
     def format_result(result)
+      return "" if result.nil?
       begin
         JSON.pretty_generate(result)
       rescue JSON::GeneratorError
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Back to archive index