Skip to content

Commit 52b8980

Browse files
jaysonsantosdschep
andcommitted
Apply suggestions from code review
Co-Authored-By: Daniel Schep <[email protected]>
1 parent 2c6b3c1 commit 52b8980

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/poetry.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,19 +33,19 @@ function pyprojectTomlToRequirements() {
3333
throw new Error(res.stderr);
3434
}
3535

36-
const editableLine = new RegExp(/^-e /gm);
36+
const editableFlag = new RegExp(/^-e /gm);
3737
const sourceRequirements = path.join(this.servicePath, 'requirements.txt');
3838
const requirementsContents = fse.readFileSync(sourceRequirements, {
3939
encoding: 'utf-8'
4040
});
4141

42-
if (requirementsContents.match(editableLine)) {
42+
if (requirementsContents.match(editableFlag)) {
4343
this.serverless.cli.log(
4444
'The generated file contains -e lines, removing them...'
4545
);
4646
fse.writeFileSync(
4747
sourceRequirements,
48-
requirementsContents.replace(editableLine, '')
48+
requirementsContents.replace(editableFlag, '')
4949
);
5050
}
5151

0 commit comments

Comments
 (0)