Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app/controllers/concerns/metrics/dashboard/prometheus_api_proxy.rb')
-rw-r--r--app/controllers/concerns/metrics/dashboard/prometheus_api_proxy.rb4
1 files changed, 1 insertions, 3 deletions
diff --git a/app/controllers/concerns/metrics/dashboard/prometheus_api_proxy.rb b/app/controllers/concerns/metrics/dashboard/prometheus_api_proxy.rb
index 65237b552ca..ea9fd2de961 100644
--- a/app/controllers/concerns/metrics/dashboard/prometheus_api_proxy.rb
+++ b/app/controllers/concerns/metrics/dashboard/prometheus_api_proxy.rb
@@ -12,9 +12,7 @@ module Metrics::Dashboard::PrometheusApiProxy
variable_substitution_result =
proxy_variable_substitution_service.new(proxyable, permit_params).execute
- if variable_substitution_result[:status] == :error
- return error_response(variable_substitution_result)
- end
+ return error_response(variable_substitution_result) if variable_substitution_result[:status] == :error
prometheus_result = ::Prometheus::ProxyService.new(
proxyable,