Fix "else if" check
This commit is contained in:
parent
3f428f0bdc
commit
2014d4abd9
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue