Skip to content

Commit fdf16f1

Browse files
committed
Remove unnecessary else
I think that `else` is unnecessary because it throws in the previous `if`.
1 parent 3f7cccc commit fdf16f1

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/pip.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,8 @@ function installRequirements() {
5959
if (res.error.code === 'ENOENT') {
6060
if (this.options.dockerizePip) {
6161
throw new Error('docker not found! Please install it.');
62-
} else {
63-
throw new Error(`${this.options.pythonBin} not found! Try the pythonBin option.`);
6462
}
63+
throw new Error(`${this.options.pythonBin} not found! Try the pythonBin option.`);
6564
}
6665
throw new Error(res.error);
6766
}

0 commit comments

Comments
 (0)