diff options
author | Alessio Caiazza <acaiazza@gitlab.com> | 2017-11-03 13:55:44 +0100 |
---|---|---|
committer | Alessio Caiazza <acaiazza@gitlab.com> | 2017-11-03 13:55:44 +0100 |
commit | e6616e0468deaf1e37ddddc9332cc3e677567410 (patch) | |
tree | 4ba0050161f732a4243faa83d0a56416d6d99c23 /app/controllers/projects/clusters | |
parent | 44f885eff62cca07b60f8bb210733c4e0a2ea019 (diff) | |
download | gitlab-ce-e6616e0468deaf1e37ddddc9332cc3e677567410.tar.gz |
Fix typos
Diffstat (limited to 'app/controllers/projects/clusters')
-rw-r--r-- | app/controllers/projects/clusters/applications_controller.rb | 18 |
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 |