Skip to content

Commit

Permalink
refactor(plugin): replace typeof undefined check (#259)
Browse files Browse the repository at this point in the history
  • Loading branch information
Fdawgs committed Oct 28, 2023
1 parent ca4c74f commit 2c4c0f0
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 @@ -126,7 +126,7 @@ function plugin (fastify, options, next) {
fastify.decorate('serializeCookie', cookie.serialize)
fastify.decorate('parseCookie', parseCookie)

if (typeof secret !== 'undefined') {
if (secret !== undefined) {
fastify.decorate('signCookie', signCookie)
fastify.decorate('unsignCookie', unsignCookie)

Expand Down

0 comments on commit 2c4c0f0

Please sign in to comment.