Skip to content

Commit 3f4facf

Browse files
authored
Merge pull request #99 from abetomo/clean_codes
Fix according to other codes
2 parents f2c1119 + fdf16f1 commit 3f4facf

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

lib/pip.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,13 +67,12 @@ function installRequirements() {
6767
if (res.error.code === 'ENOENT') {
6868
if (this.options.dockerizePip) {
6969
throw new Error('docker not found! Please install it.');
70-
} else {
71-
throw new Error(`${this.options.pythonBin} not found! Try the pythonBin option.`);
7270
}
71+
throw new Error(`${this.options.pythonBin} not found! Try the pythonBin option.`);
7372
}
7473
throw new Error(res.error);
7574
}
76-
if (res.status != 0)
75+
if (res.status !== 0)
7776
throw new Error(res.stderr);
7877
};
7978

lib/pipenv.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ function pipfileToRequirements() {
1818
throw new Error(`pipenv not found! Install it with 'pip install pipenv'.`);
1919
throw new Error(res.error);
2020
}
21-
if (res.status != 0)
21+
if (res.status !== 0)
2222
throw new Error(res.stderr);
2323
fse.ensureDirSync(path.join(this.servicePath, '.serverless'));
2424
fse.writeFileSync(path.join(this.servicePath, '.serverless/requirements.txt'), res.stdout);

0 commit comments

Comments
 (0)