Skip to content

Commit

Permalink
viewable? should not load or binary check large blobs
Browse files Browse the repository at this point in the history
  • Loading branch information
tmm1 committed Nov 23, 2011
1 parent 4b9a1c2 commit bb4840c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/linguist/blob_helper.rb
Expand Up @@ -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__))
Expand Down

0 comments on commit bb4840c

Please sign in to comment.