Skip to content

Commit

Permalink
Fix "else if" check
Browse files Browse the repository at this point in the history
  • Loading branch information
banga committed Jan 23, 2015
1 parent 3f428f0 commit 2014d4a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion example/add-braces
Expand Up @@ -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);
}

Expand Down

0 comments on commit 2014d4a

Please sign in to comment.