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:
authorAlessio Caiazza <acaiazza@gitlab.com>2017-11-03 15:55:44 +0300
committerAlessio Caiazza <acaiazza@gitlab.com>2017-11-03 15:55:44 +0300
commite6616e0468deaf1e37ddddc9332cc3e677567410 (patch)
tree4ba0050161f732a4243faa83d0a56416d6d99c23 /app/controllers/projects
parent44f885eff62cca07b60f8bb210733c4e0a2ea019 (diff)
Fix typos
Diffstat (limited to 'app/controllers/projects')
-rw-r--r--app/controllers/projects/clusters/applications_controller.rb18
1 files changed, 7 insertions, 11 deletions
diff --git a/app/controllers/projects/clusters/applications_controller.rb b/app/controllers/projects/clusters/applications_controller.rb
index aa36ccac804..fae1ceb04b0 100644
--- a/app/controllers/projects/clusters/applications_controller.rb
+++ b/app/controllers/projects/clusters/applications_controller.rb
@@ -5,17 +5,13 @@ class Projects::Clusters::ApplicationsController < Projects::ApplicationControll
before_action :authorize_create_cluster!, only: [:create]
def create
- respond_to do |format|
- format.json do
- scheduled = Clusters::Applications::ScheduleInstallationService.new(project, current_user,
- application_class: @application_class,
- cluster: @cluster).execute
- if scheduled
- head :no_data
- else
- head :bad_request
- end
- end
+ scheduled = Clusters::Applications::ScheduleInstallationService.new(project, current_user,
+ application_class: @application_class,
+ cluster: @cluster).execute
+ if scheduled
+ head :no_data
+ else
+ head :bad_request
end
end