Skip to content

Commit c76b8b1

Browse files
fix linting error
1 parent 6326198 commit c76b8b1

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/compiler/checker.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ namespace ts {
1919

2020
export function getSymbolId(symbol: Symbol): number {
2121
if (!symbol.id) {
22-
symbol.id = nextSymbolId;
22+
symbol.id = nextSymbolId;
2323
nextSymbolId++;
2424
}
2525

@@ -6365,7 +6365,7 @@ namespace ts {
63656365
}
63666366

63676367
function tryElaborateErrorsForPrimitivesAndObjects(source: Type, target: Type) {
6368-
const sourceType = typeToString(source);
6368+
const sourceType = typeToString(source);
63696369
const targetType = typeToString(target);
63706370

63716371
if ((globalStringType === source && stringType === target) ||
@@ -6501,7 +6501,8 @@ namespace ts {
65016501
if (reportErrors) {
65026502
if (source.flags & TypeFlags.ObjectType && target.flags & TypeFlags.Primitive) {
65036503
tryElaborateErrorsForPrimitivesAndObjects(source, target);
6504-
} else if (source.symbol && source.flags & TypeFlags.ObjectType && globalObjectType === source) {
6504+
}
6505+
else if (source.symbol && source.flags & TypeFlags.ObjectType && globalObjectType === source) {
65056506
reportError(Diagnostics.The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead);
65066507
}
65076508
reportRelationError(headMessage, source, target);

0 commit comments

Comments
 (0)