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 'lib/banzai/filter/base_relative_link_filter.rb')
-rw-r--r--lib/banzai/filter/base_relative_link_filter.rb18
1 files changed, 6 insertions, 12 deletions
diff --git a/lib/banzai/filter/base_relative_link_filter.rb b/lib/banzai/filter/base_relative_link_filter.rb
index 3f775abb185..b2eaeb69f61 100644
--- a/lib/banzai/filter/base_relative_link_filter.rb
+++ b/lib/banzai/filter/base_relative_link_filter.rb
@@ -13,18 +13,12 @@ module Banzai
protected
def linkable_attributes
- if Feature.enabled?(:optimize_linkable_attributes, project, default_enabled: :yaml)
- # Nokorigi Nodeset#search performs badly for documents with many nodes
- #
- # Here we store fetched attributes in the shared variable "result"
- # This variable is passed through the chain of filters and can be
- # accessed by them
- result[:linkable_attributes] ||= fetch_linkable_attributes
- else
- strong_memoize(:linkable_attributes) do
- fetch_linkable_attributes
- end
- end
+ # Nokorigi Nodeset#search performs badly for documents with many nodes
+ #
+ # Here we store fetched attributes in the shared variable "result"
+ # This variable is passed through the chain of filters and can be
+ # accessed by them
+ result[:linkable_attributes] ||= fetch_linkable_attributes
end
def relative_url_root