summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatija Čupić <matteeyah@gmail.com>2018-05-04 18:04:59 +0200
committerMatija Čupić <matteeyah@gmail.com>2018-05-04 18:04:59 +0200
commitaca32becb895c57c196c81d45b6661e80ed09ebb (patch)
treefc25ba3e84ed152306c85fab0583ad78475ed5ac
parentefae273ab8f35418e3b4550e33c10e8809c3a78a (diff)
downloadgitlab-ce-38543-scale-deployments-directly-from-the-environment-page.tar.gz
-rw-r--r--app/controllers/projects/environment_scalings_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/projects/environment_scalings_controller.rb b/app/controllers/projects/environment_scalings_controller.rb
index a6f37cf5beb..e8929d6dc6c 100644
--- a/app/controllers/projects/environment_scalings_controller.rb
+++ b/app/controllers/projects/environment_scalings_controller.rb
@@ -8,7 +8,7 @@ class Projects::EnvironmentScalingsController < Projects::ApplicationController
def update
if @environment_scaling.update(scaling_params)
respond_to do |format|
- format.json { return head status: :ok }
+ format.json { head status: :ok }
end
else
respond_to do |format|