We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 92ac406 commit c5fc6c6Copy full SHA for c5fc6c6
src/ast.ts
@@ -1829,7 +1829,7 @@ export class FunctionDeclaration extends DeclarationStatement {
1829
var body = this.body;
1830
if (!(body && body.kind == NodeKind.BLOCK)) return null;
1831
var statements = (<BlockStatement>body).statements;
1832
- if (statements.length < 0) return null;
+ if (!statements.length) return null;
1833
return statements[0];
1834
}
1835
0 commit comments