Skip to content

Commit

Permalink
Undo unnecessary indendation change
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewvc committed Nov 25, 2015
1 parent 5aff6ac commit 010a5ef
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions logstash-core/lib/logstash/config/config_ast.rb
Original file line number Diff line number Diff line change
Expand Up @@ -232,18 +232,18 @@ def compile_initializer

def compile
case plugin_type
when "input"
return "start_input(#{variable_name})"
when "filter"
return <<-CODE
events = #{variable_name}.multi_filter(events)
CODE
when "output"
return "targeted_outputs << #{variable_name}\n"
when "codec"
settings = attributes.recursive_select(Attribute).collect(&:compile).reject(&:empty?)
attributes_code = "LogStash::Util.hash_merge_many(#{settings.map { |c| "{ #{c} }" }.join(", ")})"
return "plugin(#{plugin_type.inspect}, #{plugin_name.inspect}, #{attributes_code})"
when "input"
return "start_input(#{variable_name})"
when "filter"
return <<-CODE
events = #{variable_name}.multi_filter(events)
CODE
when "output"
return "targeted_outputs << #{variable_name}\n"
when "codec"
settings = attributes.recursive_select(Attribute).collect(&:compile).reject(&:empty?)
attributes_code = "LogStash::Util.hash_merge_many(#{settings.map { |c| "{ #{c} }" }.join(", ")})"
return "plugin(#{plugin_type.inspect}, #{plugin_name.inspect}, #{attributes_code})"
end
end

Expand Down

0 comments on commit 010a5ef

Please sign in to comment.