summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGrzegorz Bizon <grzesiek.bizon@gmail.com>2016-11-07 13:33:04 +0100
committerGrzegorz Bizon <grzesiek.bizon@gmail.com>2016-11-07 13:33:04 +0100
commitc8e8a1bb773cba5a2f77e8d20ca4ad804732a8ea (patch)
tree24c9a1dc1bdafe275a70fdf74f55f517e42c1ff8
parentc392b0cc24ba40e3fed920c6c693cb24665193af (diff)
downloadgitlab-ce-c8e8a1bb773cba5a2f77e8d20ca4ad804732a8ea.tar.gz
Improve code readability in pipelines controller
-rw-r--r--app/controllers/projects/pipelines_controller.rb4
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