From bc14e4ed1024efa1e0a411bd59e1339fb1af20c0 Mon Sep 17 00:00:00 2001 From: Mark Chao Date: Tue, 11 Sep 2018 12:37:44 +0800 Subject: Move :plain option to Highlight class This is to DRY the repeated file size check. Move spec and constants to Highlight --- app/presenters/blob_presenter.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/presenters') 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 -- cgit v1.2.3