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:
authorKamil Trzcinski <ayufan@ayufan.eu>2017-10-04 22:13:01 +0300
committerKamil Trzcinski <ayufan@ayufan.eu>2017-10-04 22:13:01 +0300
commitbee5c08094b4f2c125509f61e9e03a7a700bba5e (patch)
treec85a45ef9bdc5307c70f12aa5b2b1774bcf7bebf /app/controllers
parent54831bd44bdf7f7b19ac3a129ebf6384549d9c63 (diff)
Fix Rubocop failures
Diffstat (limited to 'app/controllers')
-rw-r--r--app/controllers/projects/clusters_controller.rb12
1 files changed, 6 insertions, 6 deletions
diff --git a/app/controllers/projects/clusters_controller.rb b/app/controllers/projects/clusters_controller.rb
index 051d3c00837..5ee30deee9d 100644
--- a/app/controllers/projects/clusters_controller.rb
+++ b/app/controllers/projects/clusters_controller.rb
@@ -60,12 +60,12 @@ class Projects::ClustersController < Projects::ApplicationController
.new(project, current_user, cluster_params)
.execute(cluster)
- if cluster.valid?
- flash[:notice] = "Cluster was successfully updated."
- redirect_to project_cluster_path(project, project.cluster)
- else
- render :show
- end
+ if cluster.valid?
+ flash[:notice] = "Cluster was successfully updated."
+ redirect_to project_cluster_path(project, project.cluster)
+ else
+ render :show
+ end
end
def destroy