Skip to content

Commit 9778474

Browse files
committed
Fix lint
1 parent c48018f commit 9778474

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/compiler/checker.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21658,7 +21658,7 @@ namespace ts {
2165821658

2165921659
const related = map(
2166021660
max > 1 ? allDiagnostics[minIndex] : flatten(allDiagnostics),
21661-
d => typeof d.messageText === 'string' ? (d as DiagnosticMessageChain) : d.messageText);
21661+
d => typeof d.messageText === "string" ? (d as DiagnosticMessageChain) : d.messageText);
2166221662
diagnostics.add(createDiagnosticForNodeFromMessageChain(node, chainDiagnosticMessages(related, Diagnostics.No_overload_matches_this_call)));
2166321663
}
2166421664
}

src/compiler/utilities.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7201,13 +7201,13 @@ namespace ts {
72017201
// }
72027202

72037203
function compareMessageText(t1: string | DiagnosticMessageChain, t2: string | DiagnosticMessageChain): Comparison {
7204-
if (typeof t1 === 'string' && typeof t2 === 'string') {
7204+
if (typeof t1 === "string" && typeof t2 === "string") {
72057205
return compareStringsCaseSensitive(t1, t2);
72067206
}
7207-
else if (typeof t1 === 'string') {
7207+
else if (typeof t1 === "string") {
72087208
return Comparison.LessThan;
72097209
}
7210-
else if (typeof t2 === 'string') {
7210+
else if (typeof t2 === "string") {
72117211
return Comparison.GreaterThan;
72127212
}
72137213
let res = compareStringsCaseSensitive(t1.messageText, t2.messageText);
@@ -7228,7 +7228,7 @@ namespace ts {
72287228
return res;
72297229
}
72307230
for (let i = 0; i < t1.next.length; i++) {
7231-
res = compareMessageText(t1.next[i], t2.next[i])
7231+
res = compareMessageText(t1.next[i], t2.next[i]);
72327232
if (res) {
72337233
return res;
72347234
}

0 commit comments

Comments
 (0)