summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Leitzen <pleitzen@gitlab.com>2019-04-02 17:35:17 +0200
committerPeter Leitzen <pleitzen@gitlab.com>2019-04-04 22:22:45 +0200
commit8ffbd8e29aeeb33029831d66a2ae3cddd4fad46a (patch)
tree7cc202cd0f3f98da5bfeb8c7cdc4bfe6177eb37b
parenta3a98039b96a7f47e015642fa2268ae7e4297063 (diff)
downloadgitlab-ce-8ffbd8e29aeeb33029831d66a2ae3cddd4fad46a.tar.gz
Remove redundant variable declaration
-rw-r--r--lib/gitlab/prometheus_client.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/gitlab/prometheus_client.rb b/lib/gitlab/prometheus_client.rb
index 7b9b951888d..f13156f898e 100644
--- a/lib/gitlab/prometheus_client.rb
+++ b/lib/gitlab/prometheus_client.rb
@@ -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