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:
authorDouwe Maan <douwe@selenight.nl>2017-06-19 19:25:21 +0300
committerDouwe Maan <douwe@selenight.nl>2017-06-19 19:50:46 +0300
commit5e8aca215243d2eaacb0a1b744909af2b7264a32 (patch)
treede0f75c16f746c62fbe19a74514f1f9fe7beb64c /app/models/legacy_diff_note.rb
parentc0c394262833a4a35e3b2f7006ba6a4e93ef80d1 (diff)
Don't display comment on unchanged line on both sides in parallel diff
Diffstat (limited to 'app/models/legacy_diff_note.rb')
-rw-r--r--app/models/legacy_diff_note.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/legacy_diff_note.rb b/app/models/legacy_diff_note.rb
index 7126de2d488..2d5909ab25e 100644
--- a/app/models/legacy_diff_note.rb
+++ b/app/models/legacy_diff_note.rb
@@ -42,7 +42,7 @@ class LegacyDiffNote < Note
end
def for_line?(line)
- !line.meta? && diff_file.line_code(line) == self.line_code
+ line.discussable? && diff_file.line_code(line) == self.line_code
end
def original_line_code