Undo bad fix for check in getVcpkgRoot (#5116)

This commit is contained in:
Colen Garoutte-Carson
2020-03-13 16:58:26 -07:00
committed by GitHub
parent 1c8b8f4d6d
commit 502eb84116
+2 -2
View File
@@ -172,9 +172,9 @@ export function getVcpkgPathDescriptorFile(): string {
}
}
let vcpkgRoot: string;
let vcpkgRoot: string | undefined;
export function getVcpkgRoot(): string {
if (!vcpkgRoot) {
if (!vcpkgRoot && vcpkgRoot !== "") {
vcpkgRoot = "";
// Check for vcpkg instance.
if (fs.existsSync(getVcpkgPathDescriptorFile())) {