Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarin Jankovski <marin@gitlab.com>2014-09-04 16:13:24 +0400
committerMarin Jankovski <marin@gitlab.com>2014-09-08 11:05:17 +0400
commit721b75733c49117100a5caf04bf6040fe6004dca (patch)
treee079954eb95eabf9407e4b8c72f7efa9a5df31b3 /app/helpers/commits_helper.rb
parentdc7554d020f7e278f30c8d4c4113a19f7c3cd82f (diff)
Take the next type into consideration
Diffstat (limited to 'app/helpers/commits_helper.rb')
-rw-r--r--app/helpers/commits_helper.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/helpers/commits_helper.rb b/app/helpers/commits_helper.rb
index fe6c303ecf2..b3249e520a4 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 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)
+ .each do |full_line, type, line_code, line_new, line_old, raw_line, next_type, next_line|
+ yield(full_line, type, line_code, line_new, line_old, raw_line, next_type, next_line)
end
end