From bb4840ca3e9ccac76ee8cd76ac16bfb92deee77b Mon Sep 17 00:00:00 2001 From: Aman Gupta Date: Wed, 23 Nov 2011 00:49:11 -0800 Subject: [PATCH] viewable? should not load or binary check large blobs --- lib/linguist/blob_helper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/linguist/blob_helper.rb b/lib/linguist/blob_helper.rb index eb052c3d70..2d4c54ea8c 100644 --- a/lib/linguist/blob_helper.rb +++ b/lib/linguist/blob_helper.rb @@ -150,7 +150,7 @@ def large? # # Return true or false def viewable? - text? && !large? + !large? && text? end vendored_paths = YAML.load_file(File.expand_path("../vendor.yml", __FILE__))