mirror of
https://github.com/KevinMidboe/linguist.git
synced 2026-01-02 15:36:17 +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