diff options
author | Marin Jankovski <marin@gitlab.com> | 2014-09-04 13:25:14 +0400 |
---|---|---|
committer | Marin Jankovski <marin@gitlab.com> | 2014-09-08 11:05:16 +0400 |
commit | f827482c12b3aeec2ed5f60afbf7c676e27435e3 (patch) | |
tree | ea03e00b15d4f5f4c3b42a7aec7ff3ee95840113 /app/helpers/commits_helper.rb | |
parent | 1067b00724c045b4fa46a9f8ff5acd09d65553e0 (diff) |
Remove duplication, expand for next_line.
Diffstat (limited to 'app/helpers/commits_helper.rb')
-rw-r--r-- | app/helpers/commits_helper.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/helpers/commits_helper.rb b/app/helpers/commits_helper.rb index 2c1df6beeab..fe6c303ecf2 100644 --- a/app/helpers/commits_helper.rb +++ b/app/helpers/commits_helper.rb @@ -25,8 +25,8 @@ module CommitsHelper def side_diff_line(diff, index) Gitlab::DiffParser.new(diff.diff.lines.to_a, diff.new_path) - .each_for_parallel do |full_line, type, line_code, line_new, line_old, next_line| - yield(full_line, type, line_code, line_new, line_old, next_line) + .each do |full_line, type, line_code, line_new, line_old, raw_line, next_line| + yield(full_line, type, line_code, line_new, line_old, raw_line, next_line) end end |