Remove dead code testing result of resolveProjectReferencePath (#25284)

This commit is contained in:
Andy
2018-06-28 10:50:39 -07:00
committed by GitHub
parent 5c2eeb20b1
commit 3a023ed7d6
-4
View File
@@ -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);
}