Nicer debug factoring

This commit is contained in:
Ted Nyman
2013-12-14 15:24:26 -08:00
parent e0c1a84821
commit 6a8de63d2d
2 changed files with 16 additions and 15 deletions

View File

@@ -117,6 +117,7 @@ module Linguist
if possible_languages.length > 1
data = data.call() if data.respond_to?(:call)
if data.nil? || data == ""
nil
elsif (result = find_by_shebang(data)) && !result.empty?