Return nil if no Language if found

This commit is contained in:
Joshua Peek
2011-06-18 21:49:02 -05:00
parent 063bf21c66
commit 876265e8f3
3 changed files with 20 additions and 35 deletions

View File

@@ -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