Do not try print AST for cases generated source does not have a diff

This commit is contained in:
Markus Schirp 2012-11-25 00:45:19 +01:00
parent beba0f1155
commit 6c47342bca

View file

@ -221,8 +221,6 @@ module Mutant
diff = color? ? differ.colorized_diff : differ.diff diff = color? ? differ.colorized_diff : differ.diff
# FIXME remove this branch before release # FIXME remove this branch before release
if diff.empty? if diff.empty?
killer.send(:mutation).node.ascii_graph
killer.send(:mutation).subject.node.ascii_graph
raise "Unable to create a diff, so ast mutation or to_source has an error!" raise "Unable to create a diff, so ast mutation or to_source has an error!"
end end
puts(diff) puts(diff)