Skip to content

Commit

Permalink
When testing if a blob is safe to colorize, check size first
Browse files Browse the repository at this point in the history
Similar to e415a13
  • Loading branch information
Scott J. Goldman committed Sep 2, 2012
1 parent e415a13 commit 0439475
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/linguist/blob_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ def large?
#
# Return true or false
def safe_to_colorize?
text? && !large? && !high_ratio_of_long_lines?
!large? && text? && !high_ratio_of_long_lines?
end

# Internal: Does the blob have a ratio of long lines?
Expand Down

0 comments on commit 0439475

Please sign in to comment.