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
|
||||
#
|
||||
def max_length
|
||||
old.length > new.length ? old.length : new.length
|
||||
[old, new].map(&:length).max
|
||||
end
|
||||
|
||||
# Return colorized diff line
|
||||
|
|
Loading…
Reference in a new issue