Skip to content

Commit 4970249

Browse files
committed
f o r m a t
1 parent 00501f2 commit 4970249

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/compiler/checker.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37415,7 +37415,8 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker {
3741537415
const body = func.body as Block;
3741637416
if ((body.statements.length !== 1) || (body.statements[0].kind !== SyntaxKind.ReturnStatement)) return undefined;
3741737417
returnExpression = (body.statements[0] as ReturnStatement).expression;
37418-
} else {
37418+
}
37419+
else {
3741937420
returnExpression = func.body;
3742037421
}
3742137422
if (!returnExpression) return undefined;

0 commit comments

Comments
 (0)