提交 05d742a0 编写于 作者: L Lin Jen-Shin

Indent the way rubocop likes

上级 ecac2f11
......@@ -4,8 +4,8 @@ module CreatesCommit
def create_commit(service, success_path:, failure_path:, failure_view: nil, success_notice: nil)
set_commit_variables
source_branch = @ref if @ref &&
@mr_source_project.repository.branch_exists?(@ref)
source_branch = @ref if
@ref && @mr_source_project.repository.branch_exists?(@ref)
commit_params = @commit_params.merge(
source_project: @mr_source_project,
source_branch: source_branch,
......
......@@ -781,7 +781,7 @@ class Repository
end
if source_branch_name &&
source_project.repository.tree_entry_at(source_branch_name, path)
source_project.repository.tree_entry_at(source_branch_name, path)
raise Gitlab::Git::Repository::InvalidBlobName.new(error_message)
end
end
......
......@@ -90,8 +90,8 @@ class GitOperationService
# If repo was empty expire cache
repository.after_create if was_empty
repository.after_create_branch if was_empty ||
Gitlab::Git.blank_ref?(oldrev)
repository.after_create_branch if
was_empty || Gitlab::Git.blank_ref?(oldrev)
newrev
end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册