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/gitlab/highlight.rb')
-rw-r--r--lib/gitlab/highlight.rb6
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/gitlab/highlight.rb b/lib/gitlab/highlight.rb
index afe1554aec1..f830af68e07 100644
--- a/lib/gitlab/highlight.rb
+++ b/lib/gitlab/highlight.rb
@@ -50,11 +50,7 @@ module Gitlab
attr_reader :context
def self.file_size_limit
- if Feature.enabled?(:one_megabyte_file_size_limit)
- 1024.kilobytes
- else
- Gitlab.config.extra['maximum_text_highlight_size_kilobytes']
- end
+ Gitlab.config.extra['maximum_text_highlight_size_kilobytes']
end
private_class_method :file_size_limit