Skip to content

Commit cd9b30a

Browse files
committed
Fix formatting
1 parent e0ccb0d commit cd9b30a

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/compiler/checker.ts

+4-2
Original file line numberDiff line numberDiff line change
@@ -28842,14 +28842,16 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker {
2884228842
const declaration = symbol.valueDeclaration && getRootDeclaration(symbol.valueDeclaration);
2884328843
return !!declaration && (
2884428844
isParameter(declaration) ||
28845-
isVariableDeclaration(declaration) && (isCatchClause(declaration.parent) || isMutableLocalVariableDeclaration(declaration)));
28845+
isVariableDeclaration(declaration) && (isCatchClause(declaration.parent) || isMutableLocalVariableDeclaration(declaration))
28846+
);
2884628847
}
2884728848

2884828849
function isMutableLocalVariableDeclaration(declaration: VariableDeclaration) {
2884928850
// Return true if symbol is a non-exported and non-global `let` variable
2885028851
return !!(declaration.parent.flags & NodeFlags.Let) && !(
2885128852
getCombinedModifierFlags(declaration) & ModifierFlags.Export ||
28852-
declaration.parent.parent.kind === SyntaxKind.VariableStatement && isGlobalSourceFile(declaration.parent.parent.parent));
28853+
declaration.parent.parent.kind === SyntaxKind.VariableStatement && isGlobalSourceFile(declaration.parent.parent.parent)
28854+
);
2885328855
}
2885428856

2885528857
function parameterInitializerContainsUndefined(declaration: ParameterDeclaration): boolean {

0 commit comments

Comments
 (0)