From ce30827ccb4eb9febd09f1fdea01c2fda93fe8bb Mon Sep 17 00:00:00 2001 From: Douwe Maan Date: Thu, 7 Jul 2016 23:44:04 +0000 Subject: [PATCH] Do not set `@use_legacy_diff_notes` --- app/helpers/notes_helper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/helpers/notes_helper.rb b/app/helpers/notes_helper.rb index 16dd69ce5f6..98143dcee9b 100644 --- a/app/helpers/notes_helper.rb +++ b/app/helpers/notes_helper.rb @@ -45,7 +45,7 @@ module NotesHelper # tab, would show in different discussions on the discussion tab. use_legacy_diff_note ||= begin line_diff_notes = @grouped_diff_notes[line_code] - @use_legacy_diff_notes = line_diff_notes && line_diff_notes.any?(&:legacy_diff_note?) + line_diff_notes && line_diff_notes.any?(&:legacy_diff_note?) end data = {