Skip to content

Commit

Permalink
Use || instead of ??
Browse files Browse the repository at this point in the history
  • Loading branch information
gurgunday authored Jul 26, 2023
1 parent 52f580c commit eab4b9e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ function fastifyCookieSetCookie (reply, name, value, options, signer) {
}
}

reply[kReplySetCookies].set(`${name};${opts.domain};${opts.path ?? '/'}`, { name, value, opts })
reply[kReplySetCookies].set(`${name};${opts.domain};${opts.path || '/'}`, { name, value, opts })

return reply
}
Expand Down

0 comments on commit eab4b9e

Please sign in to comment.