From 97784749b5e218843cd5b2574e802900a71cfe2d Mon Sep 17 00:00:00 2001 From: Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com> Date: Fri, 28 Jun 2019 16:09:54 -0700 Subject: [PATCH] Fix lint --- src/compiler/checker.ts | 2 +- src/compiler/utilities.ts | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/compiler/checker.ts b/src/compiler/checker.ts index 0f0ba5c786a..5bb5210248d 100644 --- a/src/compiler/checker.ts +++ b/src/compiler/checker.ts @@ -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))); } } diff --git a/src/compiler/utilities.ts b/src/compiler/utilities.ts index 4d7eaf65a24..b575deab62f 100644 --- a/src/compiler/utilities.ts +++ b/src/compiler/utilities.ts @@ -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; }