Remove unneded empty blob check

This commit is contained in:
Brandon Keepers
2014-11-27 10:55:03 -05:00
parent 9efd923382
commit a4081498f8
2 changed files with 0 additions and 13 deletions

View File

@@ -92,13 +92,11 @@ module Linguist
end
require 'linguist/strategy/filename'
require 'linguist/strategy/empty_blob'
require 'linguist/strategy/shebang'
require 'linguist/strategy/classifier'
STRATEGIES = [
Linguist::Strategy::Filename,
Linguist::Strategy::EmptyBlob,
Linguist::Strategy::Shebang,
Linguist::Heuristics,
Linguist::Strategy::Classifier

View File

@@ -1,11 +0,0 @@
module Linguist
module Strategy
# Stops detection if the blob contents are empty
class EmptyBlob
def self.call(blob, langauges)
# Return empty array to stop detection
[] if blob.data.nil? || blob.data == ""
end
end
end
end