Simplify Differ#max_length

This commit is contained in:
Markus Schirp 2013-07-02 23:34:35 +02:00
parent 9338166ac7
commit b36348a1b8

View file

@ -82,7 +82,7 @@ module Mutant
# @api private # @api private
# #
def max_length def max_length
old.length > new.length ? old.length : new.length [old, new].map(&:length).max
end end
# Return colorized diff line # Return colorized diff line