File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
src/lambda/handler-runner/python-runner Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -99,7 +99,7 @@ export default class PythonRunner {
99
99
// invoke.py, based on:
100
100
// https://github.com/serverless/serverless/blob/v1.50.0/lib/plugins/aws/invokeLocal/invoke.py
101
101
async run ( event , context ) {
102
- return new Promise ( ( accept , reject ) => {
102
+ return new Promise ( ( res , rej ) => {
103
103
const input = stringify ( {
104
104
context,
105
105
event,
@@ -117,11 +117,10 @@ export default class PythonRunner {
117
117
if ( parsed ) {
118
118
this . #handlerProcess. stdout . readline . removeListener ( 'line' , onLine )
119
119
this . #handlerProcess. stderr . removeListener ( 'data' , onErr )
120
- return accept ( parsed )
120
+ res ( parsed )
121
121
}
122
- return null
123
122
} catch ( err ) {
124
- return reject ( err )
123
+ rej ( err )
125
124
}
126
125
}
127
126
You can’t perform that action at this time.
0 commit comments