From d4091554cd0d9b9dd4bfb043f78d9ade9bdc9d8a Mon Sep 17 00:00:00 2001 From: Ron Buckton Date: Tue, 19 Dec 2017 13:50:31 -0800 Subject: [PATCH] Minor PR feedback --- src/compiler/core.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/compiler/core.ts b/src/compiler/core.ts index 79f8d163b79..b628f18df21 100644 --- a/src/compiler/core.ts +++ b/src/compiler/core.ts @@ -1849,12 +1849,12 @@ namespace ts { comparer(a[key], b[key]); } - function getDiagnosticFileName(diagnostic: Diagnostic): string { + function getDiagnosticFilePath(diagnostic: Diagnostic): string { return diagnostic.file ? diagnostic.file.path : undefined; } export function compareDiagnostics(d1: Diagnostic, d2: Diagnostic): Comparison { - return compareStringsCaseSensitive(getDiagnosticFileName(d1), getDiagnosticFileName(d2)) || + return compareStringsCaseSensitive(getDiagnosticFilePath(d1), getDiagnosticFilePath(d2)) || compareValues(d1.start, d2.start) || compareValues(d1.length, d2.length) || compareValues(d1.code, d2.code) ||