[Groonga-commit] droonga/fluent-plugin-droonga at 2ec622f [master] Indent

Back to archive index

YUKI Hiroshi null+****@clear*****
Fri Nov 29 10:45:55 JST 2013


YUKI Hiroshi	2013-11-29 10:45:55 +0900 (Fri, 29 Nov 2013)

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

  Message:
    Indent

  Modified files:
    lib/droonga/plugin/collector/basic.rb

  Modified: lib/droonga/plugin/collector/basic.rb (+12 -12)
===================================================================
--- lib/droonga/plugin/collector/basic.rb    2013-11-29 10:42:42 +0900 (de00911)
+++ lib/droonga/plugin/collector/basic.rb    2013-11-29 10:45:55 +0900 (fafa91c)
@@ -55,21 +55,21 @@ module Droonga
     def apply_output_attribute_and_format(items, output)
       attributes = output["attributes"]
       if attributes
-      format = output["format"]
-      if format == "complex"
-        items.collect! do |item|
-          complex_item = {}
-          attributes.each_with_index do |label, index|
-            complex_item[label] = item[index]
+        format = output["format"]
+        if format == "complex"
+          items.collect! do |item|
+            complex_item = {}
+            attributes.each_with_index do |label, index|
+              complex_item[label] = item[index]
+            end
+            complex_item
+          end
+        else
+          items.collect! do |item|
+            item[0...attributes.size]
           end
-          complex_item
-        end
-      else
-        items.collect! do |item|
-          item[0...attributes.size]
         end
       end
-      end
       items
     end
 
-------------- next part --------------
HTML����������������������������...
Download 



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