Skip to content
Snippets Groups Projects

Remove extraneous DiffNote#supports_suggestion? calls

1 file
+ 1
1
Compare changes
  • Side-by-side
  • Inline
  • 8bb0449c
    Most/all of the work we're doing in this method is done at creation/edit
    time, so do we need to also check at render? Assume if you've gotten to
    this point, it's ok to enable the suggestion filter.
+ 1
1
@@ -88,7 +88,7 @@ def discussion_first_note?
end
def banzai_render_context(field)
super.merge(project: project, suggestions_filter_enabled: supports_suggestion?)
super.merge(suggestions_filter_enabled: true)
end
private
Loading