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:
Diffstat (limited to 'app/serializers/discussion_entity.rb')
-rw-r--r--app/serializers/discussion_entity.rb5
1 files changed, 1 insertions, 4 deletions
diff --git a/app/serializers/discussion_entity.rb b/app/serializers/discussion_entity.rb
index 2957205a81c..497471699b2 100644
--- a/app/serializers/discussion_entity.rb
+++ b/app/serializers/discussion_entity.rb
@@ -69,9 +69,6 @@ class DiscussionEntity < Grape::Entity
end
def display_merge_ref_discussions?(discussion)
- return unless discussion.diff_discussion?
- return if discussion.legacy_diff_discussion?
-
- Feature.enabled?(:merge_ref_head_comments, discussion.project, default_enabled: true)
+ discussion.diff_discussion? && !discussion.legacy_diff_discussion?
end
end