Commit 16176fcb authored by Kerri Miller's avatar Kerri Miller

Really should use ||= assignment

parent 2671dd85
...@@ -56,7 +56,7 @@ module Gitlab ...@@ -56,7 +56,7 @@ module Gitlab
end end
def self.slow_path_lookup(merge_request, merge_request_diff) def self.slow_path_lookup(merge_request, merge_request_diff)
merge_request_diff = merge_request_diff || merge_request.merge_request_diff merge_request_diff ||= merge_request.merge_request_diff
merge_request.project.repository.diff_stats( merge_request.project.repository.diff_stats(
merge_request_diff.base_commit_sha, merge_request_diff.base_commit_sha,
......
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