Removing second binary? check

This commit is contained in:
Arfon Smith
2014-07-07 15:24:22 -05:00
parent 986611ac36
commit bc7596a8b5

View File

@@ -124,7 +124,7 @@ module Linguist
possible_language_names = possible_languages.map(&:name)
# Don't bother with binary contents or an empty file
if blob.binary? || data.nil? || data == ""
if data.nil? || data == ""
nil
# Check if there's a shebang line and use that as authoritative
elsif (result = find_by_shebang(data)) && !result.empty?