Commit d9b3cd13 authored by Quang-Minh Nguyen's avatar Quang-Minh Nguyen

Fix key word arguments warning

parent 6e8ae619
......@@ -21,9 +21,9 @@ module Gitlab
[:fetch, :read, :read_multi, :write_multi, :fetch_multi, :write, :delete,
:exist?, :delete_matched, :increment, :decrement, :cleanup, :clear].each do |interface|
define_method interface do |*args, &block|
define_method interface do |*args, **k_args, &block|
@notifier.instrument(NOTIFICATION_CHANNEL, operation: interface) do
@upstream_store.public_send(interface, *args, &block) # rubocop:disable GitlabSecurity/PublicSend
@upstream_store.public_send(interface, *args, **k_args, &block) # rubocop:disable GitlabSecurity/PublicSend
end
end
end
......
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