Fix DeepSource JS-0356

pull/125/head
tycrek 3 years ago
parent 5b88d5e585
commit c1a5d77f0f
No known key found for this signature in database
GPG Key ID: 25D74F3943625263

@ -3,7 +3,7 @@ import { Config, MagicNumbers, Package } from 'ass-json';
//#region Imports
import fs from 'fs-extra';
import express, { Request, Response, NextFunction } from 'express';
import express, { Request, Response } from 'express';
import nofavicon from '@tycrek/express-nofavicon';
import epcss from '@tycrek/express-postcss';
import tailwindcss from 'tailwindcss';
@ -99,7 +99,7 @@ app.use('/css', epcss({
app.use('/:resourceId', (req, _res, next) => (req.resourceId = req.params.resourceId, next()), ROUTERS.resource); // skipcq: JS-0086, JS-0090
// Error handler
app.use((err: ErrWrap, _req: Request, res: Response, _next: NextFunction) => log.error(err).err(err).callback(() => res.sendStatus(CODE_INTERNAL_SERVER_ERROR))); // skipcq: JS-0128
app.use((err: ErrWrap, _req: Request, res: Response) => log.error(err).err(err).callback(() => res.sendStatus(CODE_INTERNAL_SERVER_ERROR))); // skipcq: JS-0128
(function start() {
if (data() == null) setTimeout(start, 100);

Loading…
Cancel
Save