MCPcopy Create free account
hub / github.com/angular/dev-infra / constructor

Method constructor

github-actions/saucelabs/set-saucelabs-env.js:20432–20450  ·  view source on GitHub ↗
(options, toolPath)

Source from the content-addressed store, hash-verified

20430 return [];
20431 }
20432 if (tool.includes(path2.sep)) {
20433 return [];
20434 }
20435 const directories = [];
20436 if (process.env.PATH) {
20437 for (const p of process.env.PATH.split(path2.delimiter)) {
20438 if (p) {
20439 directories.push(p);
20440 }
20441 }
20442 }
20443 const matches = [];
20444 for (const directory of directories) {
20445 const filePath = yield tryGetExecutablePath(path2.join(directory, tool), extensions);
20446 if (filePath) {
20447 matches.push(filePath);
20448 }
20449 }
20450 return matches;
20451 });
20452 }
20453

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected