Skip to content

Commit 3f7cccc

Browse files
committed
Modify to strict comparison with other codes
1 parent 5134169 commit 3f7cccc

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/pip.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ function installRequirements() {
6565
}
6666
throw new Error(res.error);
6767
}
68-
if (res.status != 0)
68+
if (res.status !== 0)
6969
throw new Error(res.stderr);
7070
};
7171

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)