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

Remove redundant variable declaration

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