mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-17 01:49:57 -05:00
Fix lint
This commit is contained in:
@@ -21658,7 +21658,7 @@ namespace ts {
|
||||
|
||||
const related = map(
|
||||
max > 1 ? allDiagnostics[minIndex] : flatten(allDiagnostics),
|
||||
d => typeof d.messageText === 'string' ? (d as DiagnosticMessageChain) : d.messageText);
|
||||
d => typeof d.messageText === "string" ? (d as DiagnosticMessageChain) : d.messageText);
|
||||
diagnostics.add(createDiagnosticForNodeFromMessageChain(node, chainDiagnosticMessages(related, Diagnostics.No_overload_matches_this_call)));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -7201,13 +7201,13 @@ namespace ts {
|
||||
// }
|
||||
|
||||
function compareMessageText(t1: string | DiagnosticMessageChain, t2: string | DiagnosticMessageChain): Comparison {
|
||||
if (typeof t1 === 'string' && typeof t2 === 'string') {
|
||||
if (typeof t1 === "string" && typeof t2 === "string") {
|
||||
return compareStringsCaseSensitive(t1, t2);
|
||||
}
|
||||
else if (typeof t1 === 'string') {
|
||||
else if (typeof t1 === "string") {
|
||||
return Comparison.LessThan;
|
||||
}
|
||||
else if (typeof t2 === 'string') {
|
||||
else if (typeof t2 === "string") {
|
||||
return Comparison.GreaterThan;
|
||||
}
|
||||
let res = compareStringsCaseSensitive(t1.messageText, t2.messageText);
|
||||
@@ -7228,7 +7228,7 @@ namespace ts {
|
||||
return res;
|
||||
}
|
||||
for (let i = 0; i < t1.next.length; i++) {
|
||||
res = compareMessageText(t1.next[i], t2.next[i])
|
||||
res = compareMessageText(t1.next[i], t2.next[i]);
|
||||
if (res) {
|
||||
return res;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user