mirror of
https://github.com/KevinMidboe/linguist.git
synced 2026-01-28 04:06:02 +00:00
Remove unneded empty blob check
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user