Commit 05d742a0 authored by Lin Jen-Shin's avatar Lin Jen-Shin

Indent the way rubocop likes

parent ecac2f11
...@@ -4,8 +4,8 @@ module CreatesCommit ...@@ -4,8 +4,8 @@ module CreatesCommit
def create_commit(service, success_path:, failure_path:, failure_view: nil, success_notice: nil) def create_commit(service, success_path:, failure_path:, failure_view: nil, success_notice: nil)
set_commit_variables set_commit_variables
source_branch = @ref if @ref && source_branch = @ref if
@mr_source_project.repository.branch_exists?(@ref) @ref && @mr_source_project.repository.branch_exists?(@ref)
commit_params = @commit_params.merge( commit_params = @commit_params.merge(
source_project: @mr_source_project, source_project: @mr_source_project,
source_branch: source_branch, source_branch: source_branch,
......
...@@ -90,8 +90,8 @@ class GitOperationService ...@@ -90,8 +90,8 @@ class GitOperationService
# If repo was empty expire cache # If repo was empty expire cache
repository.after_create if was_empty repository.after_create if was_empty
repository.after_create_branch if was_empty || repository.after_create_branch if
Gitlab::Git.blank_ref?(oldrev) was_empty || Gitlab::Git.blank_ref?(oldrev)
newrev newrev
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment