Skip to content

Commit

Permalink
refactor: use optional chaining
Browse files Browse the repository at this point in the history
  • Loading branch information
dnalborczyk committed Sep 21, 2022
1 parent 52b0176 commit 0000ba7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ServerlessOffline.js
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ export default class ServerlessOffline {
}
}

if (http && http.private) {
if (http?.private) {
hasPrivateHttpEvent = true
}

Expand Down

0 comments on commit 0000ba7

Please sign in to comment.