Skip to content

Commit 3a023ed

Browse files
author
Andy
authored
Remove dead code testing result of resolveProjectReferencePath (#25284)
1 parent 5c2eeb2 commit 3a023ed

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/compiler/tsbuild.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -494,10 +494,6 @@ namespace ts {
494494
function addProject(projectSpecification: string) {
495495
const fileName = resolvePath(compilerHost.getCurrentDirectory(), projectSpecification);
496496
const refPath = resolveProjectReferencePath(compilerHost, { path: fileName });
497-
if (!refPath) {
498-
return buildHost.error(Diagnostics.File_0_does_not_exist, projectSpecification);
499-
}
500-
501497
if (!compilerHost.fileExists(refPath)) {
502498
return buildHost.error(Diagnostics.File_0_does_not_exist, fileName);
503499
}

0 commit comments

Comments
 (0)