Skip to content

Commit 83acef7

Browse files
fix linting error
1 parent e65cdc3 commit 83acef7

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

@@ -6367,7 +6367,7 @@ namespace ts {
63676367
}
63686368

63696369
function tryElaborateErrorsForPrimitivesAndObjects(source: Type, target: Type) {
6370-
const sourceType = typeToString(source);
6370+
const sourceType = typeToString(source);
63716371
const targetType = typeToString(target);
63726372

63736373
if ((globalStringType === source && stringType === target) ||
@@ -6503,7 +6503,8 @@ namespace ts {
65036503
if (reportErrors) {
65046504
if (source.flags & TypeFlags.ObjectType && target.flags & TypeFlags.Primitive) {
65056505
tryElaborateErrorsForPrimitivesAndObjects(source, target);
6506-
} else if (source.symbol && source.flags & TypeFlags.ObjectType && globalObjectType === source) {
6506+
}
6507+
else if (source.symbol && source.flags & TypeFlags.ObjectType && globalObjectType === source) {
65076508
reportError(Diagnostics.The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead);
65086509
}
65096510
else if (source.symbol && source.flags & TypeFlags.ObjectType && globalObjectType === source) {

0 commit comments

Comments
 (0)