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:
authorMark Chao <mchao@gitlab.com>2018-09-11 07:37:44 +0300
committerMark Chao <mchao@gitlab.com>2018-10-30 10:44:55 +0300
commitbc14e4ed1024efa1e0a411bd59e1339fb1af20c0 (patch)
tree249ac6ce57b9758d3472dd4b1319527636b72f44 /app/presenters
parent39ae9a59a59615092fbef189466f37c34f4a7fb1 (diff)
Move :plain option to Highlight class
This is to DRY the repeated file size check. Move spec and constants to Highlight
Diffstat (limited to 'app/presenters')
-rw-r--r--app/presenters/blob_presenter.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/presenters/blob_presenter.rb b/app/presenters/blob_presenter.rb
index 2bca413876c..9980f6cd8a6 100644
--- a/app/presenters/blob_presenter.rb
+++ b/app/presenters/blob_presenter.rb
@@ -8,7 +8,7 @@ class BlobPresenter < Gitlab::View::Presenter::Simple
blob.path,
blob.data,
language: blob.language_from_gitattributes,
- plain: (plain || blob.no_highlighting?)
+ plain: plain
)
end
end