mirror of
https://github.com/KevinMidboe/linguist.git
synced 2025-10-29 17:50:22 +00:00
Return nil if no Language if found
This commit is contained in:
@@ -91,7 +91,7 @@ module Linguist
|
||||
language = blob.language
|
||||
|
||||
# Only include common langauges
|
||||
if language.common?
|
||||
if language && language.common?
|
||||
@sizes[language] += blob.size
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user