Skip to content

Commit

Permalink
Merge pull request #3180 from fluent/supress-hash-object-incompatible…
Browse files Browse the repository at this point in the history
…-warnings-on-keyward-arguments-in-compat-module-of-server-plugin-helper

plugin_helper: server: compat: Suppress keyword arguments incompatibiity warnings
  • Loading branch information
cosmo0920 committed Dec 1, 2020
2 parents 47f87cf + c7d0b40 commit 9110685
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/fluent/plugin_helper/http_server/compat/server.rb
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def stop

def build_handler
@methods.group_by(&:first).each do |(path, rest)|
klass = Fluent::PluginHelper::HttpServer::Compat::WebrickHandler.build(Hash[rest.map { |e| [e[1], e[2]] }])
klass = Fluent::PluginHelper::HttpServer::Compat::WebrickHandler.build(**Hash[rest.map { |e| [e[1], e[2]] }])
@server.mount(path, klass)
end
end
Expand Down

0 comments on commit 9110685

Please sign in to comment.