mirror of
https://github.com/microsoft/TypeScript.git
synced 2025-11-18 17:21:48 +00:00
Remove dead code testing result of resolveProjectReferencePath (#25284)
This commit is contained in:
@@ -494,10 +494,6 @@ namespace ts {
|
||||
function addProject(projectSpecification: string) {
|
||||
const fileName = resolvePath(compilerHost.getCurrentDirectory(), projectSpecification);
|
||||
const refPath = resolveProjectReferencePath(compilerHost, { path: fileName });
|
||||
if (!refPath) {
|
||||
return buildHost.error(Diagnostics.File_0_does_not_exist, projectSpecification);
|
||||
}
|
||||
|
||||
if (!compilerHost.fileExists(refPath)) {
|
||||
return buildHost.error(Diagnostics.File_0_does_not_exist, fileName);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user