Merge pull request #1674 from github/rework-heuristics

Rework heuristics
This commit is contained in:
Arfon Smith
2014-11-18 10:43:01 -06:00
8 changed files with 94 additions and 70 deletions

View File

@@ -146,6 +146,13 @@ module Linguist
end
end
# Public: Is the blob empty?
#
# Return true or false
def empty?
data.nil? || data == ""
end
# Public: Is the blob text?
#
# Return true or false