fix build failures

This commit is contained in:
Mike Greiling 2017-01-25 14:22:29 -06:00
parent c89d9e741c
commit 3b67af697c

View file

@ -15,6 +15,8 @@
%a.click-to-expand %a.click-to-expand
Click to expand it. Click to expand it.
- elsif diff_file.diff_lines.length > 0 - elsif diff_file.diff_lines.length > 0
- total_lines = 0
- if blob.lines.any?
- total_lines = blob.lines.last.chomp == '' ? blob.lines.size - 1 : blob.lines.size - total_lines = blob.lines.last.chomp == '' ? blob.lines.size - 1 : blob.lines.size
- if diff_view == :parallel - if diff_view == :parallel
= render "projects/diffs/parallel_view", diff_file: diff_file, total_lines: total_lines = render "projects/diffs/parallel_view", diff_file: diff_file, total_lines: total_lines