[Groonga-commit] droonga/drntest at dc12ed7 [master] Ignore empty body

Back to archive index

YUKI Hiroshi null+****@clear*****
Thu Apr 24 12:43:16 JST 2014


YUKI Hiroshi	2014-04-24 12:43:16 +0900 (Thu, 24 Apr 2014)

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

  Message:
    Ignore empty body

  Modified files:
    lib/drntest/response-normalizer.rb

  Modified: lib/drntest/response-normalizer.rb (+1 -1)
===================================================================
--- lib/drntest/response-normalizer.rb    2014-04-24 12:41:12 +0900 (d16c0ef)
+++ lib/drntest/response-normalizer.rb    2014-04-24 12:43:16 +0900 (14d7fc4)
@@ -98,7 +98,7 @@ module Drntest
     end
 
     def normalize_groonga_command_body!(body)
-      return unless body.is_a?(Array)
+      return if not body.is_a?(Array) or body.empty?
 
       case @request["type"]
       when "table_list"
-------------- next part --------------
HTML����������������������������...
Download 



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