mirror of
https://github.com/KevinMidboe/linguist.git
synced 2025-10-29 17:50:22 +00:00
Return nil if no Language is found
This commit is contained in:
@@ -256,7 +256,7 @@ module Linguist
|
||||
language
|
||||
|
||||
# See if there is a Language for the extension
|
||||
elsif language = Language.find_by_filename(pathname.to_s)
|
||||
elsif language = pathname.language
|
||||
language
|
||||
|
||||
# Try to detect Language from shebang line
|
||||
|
||||
Reference in New Issue
Block a user