diff options
author | Douwe Maan <douwe@selenight.nl> | 2016-07-06 19:29:41 -0400 |
---|---|---|
committer | Douwe Maan <douwe@selenight.nl> | 2016-07-06 19:29:41 -0400 |
commit | ac26b23712963b0471db9742fc340ea4fb8935a9 (patch) | |
tree | 3eb3eea43ed5ffe83b453807ceef00488a0fe2e5 /app/views/projects/diffs | |
parent | 2db75f8debd96c48c6cb8548824dd72bd71fb176 (diff) | |
download | gitlab-ce-ac26b23712963b0471db9742fc340ea4fb8935a9.tar.gz |
Remove duplication, unused methods, and some other style things
Diffstat (limited to 'app/views/projects/diffs')
-rw-r--r-- | app/views/projects/diffs/_diffs.html.haml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/projects/diffs/_diffs.html.haml b/app/views/projects/diffs/_diffs.html.haml index 8f252282692..1975287faee 100644 --- a/app/views/projects/diffs/_diffs.html.haml +++ b/app/views/projects/diffs/_diffs.html.haml @@ -23,7 +23,7 @@ .files - diff_files.each_with_index do |diff_file, index| - - diff_commit = diff_file.content_commit || commit_for_diff(diff_file) + - diff_commit = commit_for_diff(diff_file) - blob = diff_file.blob(diff_commit) - next unless blob - blob.load_all_data!(project.repository) unless blob.only_display_raw? |