Skip to content

Commit d0466ee

Browse files
bodynoyugasun
authored andcommitted
chore: remove redundancy conditional operator
1 parent 01dd4c9 commit d0466ee

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/_shims/handler.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,7 @@ exports.handler = async (event, context) => {
2525
server = createServer(app, null, app.binaryTypes || [])
2626
}
2727

28-
context.callbackWaitsForEmptyEventLoop =
29-
app.callbackWaitsForEmptyEventLoop === true ? true : false
28+
context.callbackWaitsForEmptyEventLoop = app.callbackWaitsForEmptyEventLoop === true
3029

3130
// provide sls intialize hooks
3231
if (app.slsInitialize && typeof app.slsInitialize === 'function') {

0 commit comments

Comments
 (0)