Skip to content

Commit

Permalink
review nit
Browse files Browse the repository at this point in the history
  • Loading branch information
mweberxyz committed Mar 1, 2024
1 parent 65eaf51 commit 405554f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const fastifyViewCache = fp(
)

async function fastifyView (fastify, opts) {
if (typeof fastify[viewCache] === 'undefined') {
if (fastify[viewCache] === undefined) {
await fastify.register(fastifyViewCache, opts)
}
if (!opts.engine) {
Expand Down

0 comments on commit 405554f

Please sign in to comment.