Skip to content

Commit c1980c7

Browse files
committed
Fix the incorrectly accepted suggestion
1 parent d6f768d commit c1980c7

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

src/compiler/sys.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1039,11 +1039,6 @@ namespace ts {
10391039
lastDirectoryPartWithDirectorySeparator = fileOrDirectory.substr(fileOrDirectory.lastIndexOf(directorySeparator));
10401040
lastDirectoryPart = lastDirectoryPartWithDirectorySeparator.slice(directorySeparator.length);
10411041
}
1042-
fileOrDirectory.substr(fileOrDirectory.lastIndexOf(directorySeparator)) :
1043-
undefined;
1044-
const lastDirectoryPart = isLinuxOrMacOs ?
1045-
lastDirectoryPartWithDirectorySeparator!.slice(directorySeparator.length) :
1046-
undefined;
10471042
/** Watcher for the file system entry depending on whether it is missing or present */
10481043
let watcher = !fileSystemEntryExists(fileOrDirectory, entryKind) ?
10491044
watchMissingFileSystemEntry() :

0 commit comments

Comments
 (0)