Skip to content

Commit

Permalink
istanbul ignore else
Browse files Browse the repository at this point in the history
  • Loading branch information
gurgunday committed Jul 28, 2023
1 parent 08586d8 commit e6b5def
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,11 +66,10 @@ function fastifyCookieOnSendHandler (fastifyReq, fastifyRes, payload, done) {
if (fastifyRes[kReplySetCookies].size) {
let setCookie = fastifyRes.getHeader('Set-Cookie')

/* istanbul ignore else */
if (!setCookie) {
setCookie = []
}

if (typeof setCookie === 'string') {
} else if (typeof setCookie === 'string') {
setCookie = [setCookie]
}

Expand Down

0 comments on commit e6b5def

Please sign in to comment.