Skip to content

Commit

Permalink
Undo bad fix for check in getVcpkgRoot (#5116)
Browse files Browse the repository at this point in the history
  • Loading branch information
Colengms authored Mar 13, 2020
1 parent 1c8b8f4 commit 502eb84
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Extension/src/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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())) {
Expand Down

0 comments on commit 502eb84

Please sign in to comment.