diff options
author | Kamil Trzcinski <ayufan@ayufan.eu> | 2017-10-04 21:13:01 +0200 |
---|---|---|
committer | Kamil Trzcinski <ayufan@ayufan.eu> | 2017-10-04 21:13:01 +0200 |
commit | bee5c08094b4f2c125509f61e9e03a7a700bba5e (patch) | |
tree | c85a45ef9bdc5307c70f12aa5b2b1774bcf7bebf /app/controllers | |
parent | 54831bd44bdf7f7b19ac3a129ebf6384549d9c63 (diff) | |
download | gitlab-ce-bee5c08094b4f2c125509f61e9e03a7a700bba5e.tar.gz |
Fix Rubocop failures
Diffstat (limited to 'app/controllers')
-rw-r--r-- | app/controllers/projects/clusters_controller.rb | 12 |
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 |