From 0d7b5e6db084f57552758fb05a83a3088440da22 Mon Sep 17 00:00:00 2001 From: Andrew Casey Date: Thu, 25 Mar 2021 17:12:59 -0700 Subject: [PATCH] Un-reverse condition (#43385) (cherry picked from commit 64f8bbbf454cd5521929cdba45a6df77e605638e) --- 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 69651c64439ca..559072eb30483 100644 --- a/src/compiler/sys.ts +++ b/src/compiler/sys.ts @@ -1198,7 +1198,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());