Commit bb80d439 authored by Matija Čupić's avatar Matija Čupić

Refactor GCP Client#user_agent_header to use #tap

parent 68b43f4d
...@@ -84,9 +84,9 @@ module GoogleApi ...@@ -84,9 +84,9 @@ module GoogleApi
end end
def user_agent_header def user_agent_header
options = Google::Apis::RequestOptions.new Google::Apis::RequestOptions.new.tap do |options|
options.header = { 'User-Agent': "GitLab/#{Gitlab::VERSION.match('(\d+\.\d+)').captures.first} (GPN:GitLab;)" } options.header = { 'User-Agent': "GitLab/#{Gitlab::VERSION.match('(\d+\.\d+)').captures.first} (GPN:GitLab;)" }
options end
end end
end 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