From 9c718b3384128b43dcf48afd04c65245e33b2c53 Mon Sep 17 00:00:00 2001 From: tycrek Date: Thu, 18 Aug 2022 16:22:50 -0600 Subject: [PATCH] Suppress DeepSource JS-0359 --- src/ass.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ass.ts b/src/ass.ts index 08d9024..ec505d0 100644 --- a/src/ass.ts +++ b/src/ass.ts @@ -77,7 +77,7 @@ type ASS_INDEX_TYPE = 'html' | 'js' | undefined; const ASS_INDEX: ASS_INDEX_TYPE = fs.existsSync(path('share', 'index.html')) ? 'html' : fs.existsSync(path('share', 'index.js')) ? 'js' : undefined; app.get('/', (req, res, next) => ASS_INDEX === 'html' ? res.sendFile(path('share', 'index.html')) : - ASS_INDEX === 'js' ? require(path('share', 'index.js'))(req, res, next) : + ASS_INDEX === 'js' ? require(path('share', 'index.js'))(req, res, next) : // skipcq: JS-0359 res.redirect(homepage)) // Set up custom frontend