From c1980c78578fbde7300dba073a1b9e024bb10419 Mon Sep 17 00:00:00 2001 From: Sheetal Nandi Date: Fri, 9 Aug 2019 14:14:30 -0700 Subject: [PATCH] Fix the incorrectly accepted suggestion --- src/compiler/sys.ts | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/compiler/sys.ts b/src/compiler/sys.ts index 96204e2a751..1a0df8a91c1 100644 --- a/src/compiler/sys.ts +++ b/src/compiler/sys.ts @@ -1039,11 +1039,6 @@ namespace ts { lastDirectoryPartWithDirectorySeparator = fileOrDirectory.substr(fileOrDirectory.lastIndexOf(directorySeparator)); lastDirectoryPart = lastDirectoryPartWithDirectorySeparator.slice(directorySeparator.length); } - fileOrDirectory.substr(fileOrDirectory.lastIndexOf(directorySeparator)) : - undefined; - const lastDirectoryPart = isLinuxOrMacOs ? - lastDirectoryPartWithDirectorySeparator!.slice(directorySeparator.length) : - undefined; /** Watcher for the file system entry depending on whether it is missing or present */ let watcher = !fileSystemEntryExists(fileOrDirectory, entryKind) ? watchMissingFileSystemEntry() :