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/routes/special/router.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'app/routes/special/router.ts') diff --git a/app/routes/special/router.ts b/app/routes/special/router.ts index 1508ffa..e88919c 100644 --- a/app/routes/special/router.ts +++ b/app/routes/special/router.ts @@ -1,4 +1,4 @@ -import express, { Router } from 'express'; +import express from 'express'; import { navbar, page } from '../../middlewares/index.js'; export const router = express.Router({ mergeParams: true }); @@ -7,7 +7,7 @@ router.use('/special/purge/:page?', page); router.use('/special/purge/:page/confirm', page); router.get('/special/purge/:page?', navbar, (req, res, next) => { - let page = res.locals.page; + const page = res.locals.page; if (!page) { next(); @@ -23,7 +23,7 @@ router.get('/special/purge/:page?', navbar, (req, res, next) => { }); router.get('/special/purge/:page/confirm', (req, res, next) => { - let page = res.locals.page; + const page = res.locals.page; if (!page) { next(); -- cgit v1.2.3-70-g09d2