From 5bcc7fbcd13c69fb6d9dd9bbecd959fad3d8ca8c Mon Sep 17 00:00:00 2001 From: LMBishop <13875753+LMBishop@users.noreply.github.com> Date: Tue, 21 Dec 2021 15:34:09 +0000 Subject: Cleanup code --- app/middlewares/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'app/middlewares') diff --git a/app/middlewares/index.ts b/app/middlewares/index.ts index d0ba721..d07726a 100644 --- a/app/middlewares/index.ts +++ b/app/middlewares/index.ts @@ -8,10 +8,10 @@ export const navbar = ((req, res, next) => { }); export const page = ((req, res, next) => { - let path = req.params.page ?? 'index'; + const path = req.params.page ?? 'index'; res.locals.path = path; - let page = res.locals.directory.get(path); + const page = res.locals.directory.get(path); if (!page) { next(); -- cgit v1.2.3-70-g09d2