diff options
author | Peter Leitzen <pleitzen@gitlab.com> | 2019-04-02 19:38:49 +0300 |
---|---|---|
committer | rpereira2 <rpereira@gitlab.com> | 2019-04-04 23:42:33 +0300 |
commit | 1427ad4f5ce11d8327d9258eb3ffc62803c1a304 (patch) | |
tree | 346975722e9b8eaf9a634eb4a84f831783e1bac5 /app/controllers/projects/environments/prometheus_api_controller.rb | |
parent | e1a167ee234fbb8886ac1a882002b76adeb67edf (diff) |
Streamline controller specs
Diffstat (limited to 'app/controllers/projects/environments/prometheus_api_controller.rb')
-rw-r--r-- | app/controllers/projects/environments/prometheus_api_controller.rb | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/app/controllers/projects/environments/prometheus_api_controller.rb b/app/controllers/projects/environments/prometheus_api_controller.rb index 337b7fdf65d..aace846d68c 100644 --- a/app/controllers/projects/environments/prometheus_api_controller.rb +++ b/app/controllers/projects/environments/prometheus_api_controller.rb @@ -25,10 +25,8 @@ class Projects::Environments::PrometheusApiController < Projects::ApplicationCon if result[:status] == :success render status: result[:http_status], json: result[:body] else - render status: result[:http_status] || :bad_request, json: { - status: result[:status], - message: result[:message] - } + render status: result[:http_status] || :bad_request, + json: { status: result[:status], message: result[:message] } end end |