From 405554f837b763996688d2d0e4bb7c3be845445e Mon Sep 17 00:00:00 2001 From: Matt Weber <1062734+mweberxyz@users.noreply.github.com> Date: Wed, 28 Feb 2024 18:32:38 -0500 Subject: [PATCH] review nit --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index f978dc5..8b2b67e 100644 --- a/index.js +++ b/index.js @@ -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) {