Commit 4a1667c4 authored by Vitali Tatarintev's avatar Vitali Tatarintev

Merge branch 'pl-kwargs-warnings-metric-dashboard' into 'master'

Fix Ruby 2.7 kwarg warnings for Metric Dashboard

See merge request gitlab-org/gitlab!43821
parents 80d7ef87 40e71cbf
...@@ -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