mirror of
https://github.com/KevinMidboe/linguist.git
synced 2025-10-29 17:50:22 +00:00
Remove Blob#file?
This commit is contained in:
@@ -43,10 +43,6 @@ module Linguist
|
||||
content_type.include?('octet') || !(text? || image?)
|
||||
end
|
||||
|
||||
def file?
|
||||
image? || binary?
|
||||
end
|
||||
|
||||
def text?
|
||||
content_type[/(text|json)/]
|
||||
end
|
||||
@@ -62,7 +58,7 @@ module Linguist
|
||||
end
|
||||
|
||||
def viewable?
|
||||
!file? && !large?
|
||||
!image? && !binary? && !large?
|
||||
end
|
||||
|
||||
def generated?
|
||||
|
||||
Reference in New Issue
Block a user