From 64f8bbbf454cd5521929cdba45a6df77e605638e Mon Sep 17 00:00:00 2001 From: Andrew Casey Date: Thu, 25 Mar 2021 16:25:55 -0700 Subject: [PATCH] Un-reverse condition --- src/compiler/sys.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compiler/sys.ts b/src/compiler/sys.ts index 52d6139bccb8a..37ea6450f7c1f 100644 --- a/src/compiler/sys.ts +++ b/src/compiler/sys.ts @@ -1277,7 +1277,7 @@ namespace ts { const platform: string = _os.platform(); const useCaseSensitiveFileNames = isFileSystemCaseSensitive(); - const realpathSync = useCaseSensitiveFileNames ? _fs.realpathSync : (_fs.realpathSync.native ?? _fs.realpathSync); + const realpathSync = useCaseSensitiveFileNames ? (_fs.realpathSync.native ?? _fs.realpathSync) : _fs.realpathSync; const fsSupportsRecursiveFsWatch = isNode4OrLater && (process.platform === "win32" || process.platform === "darwin"); const getCurrentDirectory = memoize(() => process.cwd());