Fix "else if" check

This commit is contained in:
Shrey Banga 2015-01-23 13:32:51 -08:00
parent 3f428f0bdc
commit 2014d4abd9

View file

@ -12,7 +12,7 @@ require("recast").run(function(ast, callback) {
stmt.consequent = fix(stmt.consequent);
var alt = stmt.alternate;
if (n.IfStatement.check(alt)) {
if (!n.IfStatement.check(alt)) {
stmt.alternate = fix(alt);
}