Yoji Shidara
null+****@clear*****
Thu Jan 23 10:52:31 JST 2014
Yoji Shidara 2014-01-23 10:52:31 +0900 (Thu, 23 Jan 2014) New Revision: 6baaa72587219f290c33dc07079e8d3e90fdd591 https://github.com/droonga/fluent-plugin-droonga/commit/6baaa72587219f290c33dc07079e8d3e90fdd591 Message: Remove redundant codes Modified files: lib/droonga/searcher.rb Modified: lib/droonga/searcher.rb (+2 -9) =================================================================== --- lib/droonga/searcher.rb 2014-01-23 10:47:28 +0900 (5cd93a5) +++ lib/droonga/searcher.rb 2014-01-23 10:52:31 +0900 (e522bd3) @@ -367,9 +367,7 @@ module Droonga source = attribute[:source] if source == "_subrecs" sub_record_table = table.range - sub_attributes = attribute[:attributes].collect do |sub_attribute| - format_attribute(sub_attribute, sub_record_table) - end + sub_attributes = format(attribute[:attributes], sub_record_table) { "name" => label, "attributes" => sub_attributes, @@ -398,12 +396,7 @@ module Droonga source = attribute[:source] if source == "_subrecs" sub_record_table = table.range - sub_attributes = {} - attribute[:attributes].each do |sub_attribute| - sub_label = sub_attribute[:label] - sub_attributes[sub_label] = - format_attribute(sub_attribute, sub_record_table) - end + sub_attributes = format(attribute[:attributes], sub_record_table) { "attributes" => sub_attributes } -------------- next part -------------- HTML����������������������������...Descargar