Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit c5fc6c6

Browse files
committedJan 30, 2019
fix
1 parent 92ac406 commit c5fc6c6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/ast.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1829,7 +1829,7 @@ export class FunctionDeclaration extends DeclarationStatement {
18291829
var body = this.body;
18301830
if (!(body && body.kind == NodeKind.BLOCK)) return null;
18311831
var statements = (<BlockStatement>body).statements;
1832-
if (statements.length < 0) return null;
1832+
if (!statements.length) return null;
18331833
return statements[0];
18341834
}
18351835
}

0 commit comments

Comments
 (0)
Please sign in to comment.