[Groonga-commit] groonga/groonga-query-log [master] json-reporter: fix indent again

Back to archive index

Haruka Yoshihara null+****@clear*****
Wed Dec 12 17:00:48 JST 2012


Haruka Yoshihara	2012-12-12 17:00:48 +0900 (Wed, 12 Dec 2012)

  New Revision: e9cded7b3671125f2e05549dc118ccc5749143b2
  https://github.com/groonga/groonga-query-log/commit/e9cded7b3671125f2e05549dc118ccc5749143b2

  Log:
    json-reporter: fix indent again

  Modified files:
    lib/groonga/query-log/analyzer/reporter/json.rb

  Modified: lib/groonga/query-log/analyzer/reporter/json.rb (+5 -5)
===================================================================
--- lib/groonga/query-log/analyzer/reporter/json.rb    2012-12-12 16:32:19 +0900 (5c6ce15)
+++ lib/groonga/query-log/analyzer/reporter/json.rb    2012-12-12 17:00:48 +0900 (1e4e1f1)
@@ -66,13 +66,13 @@ module Groonga
             operation_data = {}
             operation_data["name"] = operation[:name]
             operation_data["relative_elapsed"] = operation[:relative_elapsed_in_seconds]
-          operation_data["context"] = operation[:context]
-          operations << operation_data
+            operation_data["context"] = operation[:context]
+            operations << operation_data
+          end
+          data["operations"] = operations
+          JSON.generate(data)
         end
-        data["operations"] = operations
-        JSON.generate(data)
       end
     end
-    end
   end
 end
-------------- next part --------------
HTML����������������������������...
Download 



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