From a556f5d9076fb025c3b81b385f195af6f25e9c6d Mon Sep 17 00:00:00 2001 From: tycrek Date: Thu, 26 Aug 2021 00:27:31 -0600 Subject: [PATCH] removed weird slash --- ass.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ass.js b/ass.js index fcdbb18..55a476b 100755 --- a/ass.js +++ b/ass.js @@ -70,7 +70,7 @@ useSsl && app.use(helmet.hsts({ preload: true })); // skipcq: JS-0093 app.use(nofavicon); // Use custom index, otherwise render README.md -const ASS_INDEX = indexFile !== '' && fs.existsSync(`./${indexFile}/`) && require(`./${indexFile}`); +const ASS_INDEX = indexFile !== '' && fs.existsSync(`./${indexFile}`) && require(`./${indexFile}`); app.get('/', (req, res, next) => ASS_INDEX // skipcq: JS-0229 ? ASS_INDEX(req, res, next) : fs.readFile(path('README.md'))