Skip to content

Commit 2ee671f

Browse files
committed
chore: remove dead code
1 parent 4f8417e commit 2ee671f

File tree

1 file changed

+8
-19
lines changed
  • packages/yarnpkg-cli/sources

1 file changed

+8
-19
lines changed

packages/yarnpkg-cli/sources/main.ts

+8-19
Original file line numberDiff line numberDiff line change
@@ -22,25 +22,14 @@ function runBinary(path: PortablePath) {
2222
// innermost process, whose end will cause our own to exit.
2323
});
2424

25-
if (physicalPath) {
26-
execFileSync(process.execPath, [physicalPath, ...process.argv.slice(2)], {
27-
stdio: `inherit`,
28-
env: {
29-
...process.env,
30-
YARN_IGNORE_PATH: `1`,
31-
YARN_IGNORE_CWD: `1`,
32-
},
33-
});
34-
} else {
35-
execFileSync(process.execPath, process.argv.slice(2), {
36-
stdio: `inherit`,
37-
env: {
38-
...process.env,
39-
YARN_IGNORE_PATH: `1`,
40-
YARN_IGNORE_CWD: `1`,
41-
},
42-
});
43-
}
25+
execFileSync(process.execPath, [physicalPath, ...process.argv.slice(2)], {
26+
stdio: `inherit`,
27+
env: {
28+
...process.env,
29+
YARN_IGNORE_PATH: `1`,
30+
YARN_IGNORE_CWD: `1`,
31+
},
32+
});
4433
}
4534

4635
export async function main({binaryVersion, pluginConfiguration}: {binaryVersion: string, pluginConfiguration: PluginConfiguration}) {

0 commit comments

Comments
 (0)