mirror of
https://github.com/KevinMidboe/linguist.git
synced 2025-10-29 17:50:22 +00:00
delay calls to binary? in guess_language until viewable?, to avoid loading blobs for well known file extensions
This commit is contained in:
@@ -368,7 +368,7 @@ module Linguist
|
||||
#
|
||||
# Returns a Language or nil
|
||||
def guess_language
|
||||
return if binary?
|
||||
return if binary_mime_type?
|
||||
|
||||
# Disambiguate between multiple language extensions
|
||||
disambiguate_extension_language ||
|
||||
|
||||
Reference in New Issue
Block a user