File tree 2 files changed +3
-4
lines changed
2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -67,13 +67,12 @@ function installRequirements() {
67
67
if ( res . error . code === 'ENOENT' ) {
68
68
if ( this . options . dockerizePip ) {
69
69
throw new Error ( 'docker not found! Please install it.' ) ;
70
- } else {
71
- throw new Error ( `${ this . options . pythonBin } not found! Try the pythonBin option.` ) ;
72
70
}
71
+ throw new Error ( `${ this . options . pythonBin } not found! Try the pythonBin option.` ) ;
73
72
}
74
73
throw new Error ( res . error ) ;
75
74
}
76
- if ( res . status != 0 )
75
+ if ( res . status !== 0 )
77
76
throw new Error ( res . stderr ) ;
78
77
} ;
79
78
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ function pipfileToRequirements() {
18
18
throw new Error ( `pipenv not found! Install it with 'pip install pipenv'.` ) ;
19
19
throw new Error ( res . error ) ;
20
20
}
21
- if ( res . status != 0 )
21
+ if ( res . status !== 0 )
22
22
throw new Error ( res . stderr ) ;
23
23
fse . ensureDirSync ( path . join ( this . servicePath , '.serverless' ) ) ;
24
24
fse . writeFileSync ( path . join ( this . servicePath , '.serverless/requirements.txt' ) , res . stdout ) ;
You can’t perform that action at this time.
0 commit comments