[Groonga-commit] droonga/fluent-plugin-droonga at f2742d3 [master] Validate parameter type correctly

Back to archive index

YUKI Hiroshi null+****@clear*****
Wed Feb 12 14:18:10 JST 2014


YUKI Hiroshi	2014-02-12 14:18:10 +0900 (Wed, 12 Feb 2014)

  New Revision: f2742d31b0f36edb441a31bf3f30d91877ceba7d
  https://github.com/droonga/fluent-plugin-droonga/commit/f2742d31b0f36edb441a31bf3f30d91877ceba7d

  Message:
    Validate parameter type correctly

  Modified files:
    lib/droonga/catalog/base.rb

  Modified: lib/droonga/catalog/base.rb (+1 -1)
===================================================================
--- lib/droonga/catalog/base.rb    2014-02-12 14:16:26 +0900 (71dbd66)
+++ lib/droonga/catalog/base.rb    2014-02-12 14:18:10 +0900 (f04097d)
@@ -181,7 +181,7 @@ module Droonga
       end
 
       def validate_parameter_type(value, name, expected)
-        unless datasets.is_a?(expected)
+        unless value.is_a?(expected)
           raise MismatchedParameterType.new(name,
                                             expected,
                                             value.class,
-------------- next part --------------
HTML����������������������������...
Download 



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