Kouhei Sutou
null+****@clear*****
Mon Nov 25 00:20:24 JST 2013
Kouhei Sutou 2013-11-25 00:20:24 +0900 (Mon, 25 Nov 2013) New Revision: ed9900a3af0c54b8a2e3f017f67593b022675ccc https://github.com/droonga/fluent-plugin-droonga/commit/ed9900a3af0c54b8a2e3f017f67593b022675ccc Message: Simplify Modified files: lib/droonga/adapter_plugin.rb Modified: lib/droonga/adapter_plugin.rb (+4 -8) =================================================================== --- lib/droonga/adapter_plugin.rb 2013-11-25 00:19:37 +0900 (ac1bde2) +++ lib/droonga/adapter_plugin.rb 2013-11-25 00:20:24 +0900 (e08f1d6) @@ -35,15 +35,11 @@ module Droonga end def emit(value, name=nil) - unless name - if @output_names - name = @output_names.first - else - @output_values = value - return - end + if name + @output_values[name] = value + else + @output_values = value end - @output_values[name] = value end def process(command, message) -------------- next part -------------- HTML����������������������������... Download