Commit 010a6c87 authored by charlie ablett's avatar charlie ablett

Merge branch 'id-kwargs-worker-context' into 'master'

Use args hash instead of **kwargs

See merge request gitlab-org/gitlab!40550
parents 00a29dbb 00de86e8
......@@ -29,7 +29,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