Commit 8ffbd8e2 authored by Peter Leitzen's avatar Peter Leitzen

Remove redundant variable declaration

parent a3a98039
......@@ -96,8 +96,7 @@ module Gitlab
end
def get(path, args)
response = rest_client[path].get(params: args)
response
rest_client[path].get(params: args)
rescue SocketError
raise PrometheusClient::Error, "Can't connect to #{rest_client.url}"
rescue OpenSSL::SSL::SSLError
......
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