diff options
author | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2016-11-07 15:33:04 +0300 |
---|---|---|
committer | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2016-11-07 15:33:04 +0300 |
commit | c8e8a1bb773cba5a2f77e8d20ca4ad804732a8ea (patch) | |
tree | 24c9a1dc1bdafe275a70fdf74f55f517e42c1ff8 /app/controllers/projects/pipelines_controller.rb | |
parent | c392b0cc24ba40e3fed920c6c693cb24665193af (diff) |
Improve code readability in pipelines controller
Diffstat (limited to 'app/controllers/projects/pipelines_controller.rb')
-rw-r--r-- | app/controllers/projects/pipelines_controller.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/app/controllers/projects/pipelines_controller.rb b/app/controllers/projects/pipelines_controller.rb index 371cc3787fb..533af80aee0 100644 --- a/app/controllers/projects/pipelines_controller.rb +++ b/app/controllers/projects/pipelines_controller.rb @@ -18,7 +18,9 @@ class Projects::PipelinesController < Projects::ApplicationController end def create - @pipeline = Ci::CreatePipelineService.new(project, current_user, create_params).execute(ignore_skip_ci: true, save_on_errors: false) + @pipeline = Ci::CreatePipelineService + .new(project, current_user, create_params) + .execute(ignore_skip_ci: true, save_on_errors: false) unless @pipeline.persisted? render 'new' return |