Commit 6545a5ee authored by Marc Shaw's avatar Marc Shaw

Fix depreciation warning for positional args for applicationcontext spec

Issue: gitlab.com/gitlab-org/gitlab/-/issues/258994
parent f0e61d9b
......@@ -30,7 +30,7 @@ module Gitlab
Labkit::Context.current.to_h.include?(Labkit::Context.log_key(attribute_name))
end
def initialize(args)
def initialize(**args)
unknown_attributes = args.keys - APPLICATION_ATTRIBUTES.map(&:name)
raise ArgumentError, "#{unknown_attributes} are not known keys" if unknown_attributes.any?
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment