mirror of
https://github.com/KevinMidboe/linguist.git
synced 2026-01-26 11:15:31 +00:00
Nicer debug factoring
This commit is contained in:
@@ -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?
|
||||
|
||||
Reference in New Issue
Block a user