Skip to content

Commit

Permalink
chore: simplify, use ternary
Browse files Browse the repository at this point in the history
  • Loading branch information
dnalborczyk committed Jan 2, 2023
1 parent 0dbde70 commit 016bd42
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/events/http/HttpServer.js
Original file line number Diff line number Diff line change
Expand Up @@ -685,11 +685,8 @@ export default class HttpServer {
headerValue = valueArray[3]
? jsonPath(result, valueArray.slice(3).join('.'))
: result
if (headerValue === undefined || headerValue === null) {
headerValue = ''
} else {
headerValue = headerValue.toString()
}

headerValue = headerValue == null ? '' : String(headerValue)
} else {
log.notice()

Expand Down

0 comments on commit 016bd42

Please sign in to comment.