Commit 40e71cbf authored by Peter Leitzen's avatar Peter Leitzen

Fix Ruby 2.7 kwarg warnings for Metric Dashboard

parent 2ae6c5f3
...@@ -80,7 +80,7 @@ module Mutations ...@@ -80,7 +80,7 @@ module Mutations
raise Gitlab::Graphql::Errors::ArgumentError, ANNOTATION_SOURCE_ARGUMENT_ERROR raise Gitlab::Graphql::Errors::ArgumentError, ANNOTATION_SOURCE_ARGUMENT_ERROR
end end
super(args) super(**args)
end end
def find_object(id:) def find_object(id:)
......
...@@ -46,7 +46,7 @@ module Gitlab ...@@ -46,7 +46,7 @@ module Gitlab
links&.each do |link| links&.each do |link|
next unless link.is_a? Hash next unless link.is_a? Hash
Gitlab::UrlBlocker.validate!(link[:url], blocker_args) Gitlab::UrlBlocker.validate!(link[:url], **blocker_args)
rescue Gitlab::UrlBlocker::BlockedUrlError rescue Gitlab::UrlBlocker::BlockedUrlError
link[:url] = '' link[:url] = ''
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