Do not try print AST for cases generated source does not have a diff
This commit is contained in:
parent
beba0f1155
commit
6c47342bca
1 changed files with 0 additions and 2 deletions
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue