[Groonga-commit] ranguba/groonga-client at b4f0c75 [master] Simplify

Zurück zum Archiv-Index

Kouhei Sutou null+****@clear*****
Thu Apr 13 13:21:19 JST 2017


Kouhei Sutou	2017-04-13 13:21:19 +0900 (Thu, 13 Apr 2017)

  New Revision: b4f0c75016ef6c2079cbf4a88cda4ed30a6f824a
  https://github.com/ranguba/groonga-client/commit/b4f0c75016ef6c2079cbf4a88cda4ed30a6f824a

  Message:
    Simplify

  Modified files:
    lib/groonga/client/request/select.rb

  Modified: lib/groonga/client/request/select.rb (+3 -4)
===================================================================
--- lib/groonga/client/request/select.rb    2017-04-13 13:20:12 +0900 (03cc627)
+++ lib/groonga/client/request/select.rb    2017-04-13 13:21:19 +0900 (aa8edd4)
@@ -458,10 +458,9 @@ module Groonga
           end
 
           def to_parameters
-            escaped_values = []
-            @values.each{|value|
-              escaped_values << escape_script_syntax_value(value)
-            }
+            escaped_values =****@value***** do |value|
+              escape_script_syntax_value(value)
+            end
             {
               filter: "in_values(#{@column_name}, #{escaped_values.join(", ")})",
             }
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Zurück zum Archiv-Index