提交 d41fc61f 编写于 作者: D Dmitriy Zaporozhets

Refactor compared_diff_version method in merge requests controller

Signed-off-by: NDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
上级 6f7a3ee6
......@@ -542,12 +542,8 @@ class Projects::MergeRequestsController < Projects::ApplicationController
end
def compared_diff_version
compare = @merge_request_diff.compare_with(@start_sha)
if compare
@diffs = compare.diffs(diff_options)
@diff_notes_disabled = true
end
@diff_notes_disabled = true
@diffs = @merge_request_diff.compare_with(@start_sha).diffs(diff_options)
end
def original_diff_version
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册