Skip to content

Commit

Permalink
fix: remove unreachable condition
Browse files Browse the repository at this point in the history
  • Loading branch information
dnalborczyk committed Oct 3, 2022
1 parent 979d6b7 commit ae1c8b3
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
2 changes: 0 additions & 2 deletions src/events/http/lambda-events/LambdaProxyIntegrationEvent.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,6 @@ export default class LambdaProxyIntegrationEvent {
) {
headers['Content-Type'] = 'application/json'
}
} else if (typeof body === 'undefined' || body === '') {
body = null
}

// clone own props
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,6 @@ export default class LambdaProxyIntegrationEventV2 {
if (!headers['content-type']) {
headers['content-type'] = 'application/json'
}
} else if (typeof body === 'undefined' || body === '') {
body = null
}

// clone own props
Expand Down

0 comments on commit ae1c8b3

Please sign in to comment.