Simplify differ guard

This commit is contained in:
Markus Schirp 2014-08-11 18:26:19 +00:00
parent f633c8d894
commit 1cda3c2d2b

View file

@ -18,7 +18,7 @@ module Mutant
# @api private
#
def diff
return if diffs.length.equal?(0)
return if diffs.empty?
minimized_hunks.map do |hunk|
hunk.diff(:unified) << NEWLINE