Skip to content

Commit c5fc6c6

Browse files
committed
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

+1-1
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)