[Groonga-commit] droonga/fluent-plugin-droonga at 4ba7c8d [master] Simplify

Back to archive index

Kouhei Sutou null+****@clear*****
Mon Feb 17 18:54:52 JST 2014


Kouhei Sutou	2014-02-17 18:54:52 +0900 (Mon, 17 Feb 2014)

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

  Message:
    Simplify

  Modified files:
    lib/droonga/plugins/search.rb

  Modified: lib/droonga/plugins/search.rb (+2 -3)
===================================================================
--- lib/droonga/plugins/search.rb    2014-02-17 18:28:23 +0900 (959b777)
+++ lib/droonga/plugins/search.rb    2014-02-17 18:54:52 +0900 (643781d)
@@ -89,7 +89,7 @@ module Droonga
         def apply_output_attributes_and_format(items, output)
           attributes = output["attributes"] || []
           if output["format"] == "complex"
-            items.collect! do |item|
+            items.collect do |item|
               complex_item = {}
               attributes.each_with_index do |label, index|
                 complex_item[label] = item[index]
@@ -97,11 +97,10 @@ module Droonga
               complex_item
             end
           else
-            items.collect! do |item|
+            items.collect do |item|
               item[0...attributes.size]
             end
           end
-          items
         end
       end
 
-------------- next part --------------
HTML����������������������������...
Download 



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