Skip to content

Commit 6b7d580

Browse files
committed
Simplify condition on checkMode
Signed-off-by: Babak K. Shandiz <[email protected]>
1 parent e872af5 commit 6b7d580

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/compiler/checker.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -11583,7 +11583,7 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker {
1158311583
// to preserve this type. In fact, we need to _prefer_ that type, but it won't
1158411584
// be assigned until contextual typing is complete, so we need to defer in
1158511585
// cases where contextual typing may take place.
11586-
if (!links.type && !isParameterOfContextSensitiveSignature(symbol) && !(checkMode !== CheckMode.Normal && checkMode)) {
11586+
if (!links.type && !isParameterOfContextSensitiveSignature(symbol) && !checkMode) {
1158711587
links.type = type;
1158811588
}
1158911589
return type;

0 commit comments

Comments
 (0)