When testing if a blob is safe to colorize, check size first

Similar to e415a13
This commit is contained in:
Scott J. Goldman
2012-09-01 22:59:49 -07:00
parent e415a1351b
commit 04394750e7

View File

@@ -160,7 +160,7 @@ module Linguist
#
# 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?