Simplify Differ#max_length
This commit is contained in:
parent
9338166ac7
commit
b36348a1b8
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue