viewable? should not load or binary check large blobs

This commit is contained in:
Aman Gupta
2011-11-23 00:49:11 -08:00
parent 4b9a1c297b
commit bb4840ca3e

View File

@@ -150,7 +150,7 @@ module Linguist
# #
# Return true or false # Return true or false
def viewable? def viewable?
text? && !large? !large? && text?
end end
vendored_paths = YAML.load_file(File.expand_path("../vendor.yml", __FILE__)) vendored_paths = YAML.load_file(File.expand_path("../vendor.yml", __FILE__))