From e7f1e2b856aa241405871c9b5dd7d4077967643c Mon Sep 17 00:00:00 2001 From: tycrek Date: Thu, 18 Aug 2022 16:57:10 -0600 Subject: [PATCH] Try to resolve DeepSource JS-0356 --- src/ass.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ass.ts b/src/ass.ts index f012d15..5b41b6b 100644 --- a/src/ass.ts +++ b/src/ass.ts @@ -70,11 +70,11 @@ const bruteforce = new ExpressBrute(new ExpressBrute.MemoryStore(), { minWait: 50, // 50ms maxWait: 500, // 500ms lifetime: 5, // 5 seconds - failCallback: (req, res, next, nextValidRequestDate) => res.sendStatus(429), + failCallback: (_req, res, _next, _nextValidRequestDate) => res.sendStatus(429), }); // Routes to protect -app.get(['/'], bruteforce.prevent, (req, res, next) => next()); +app.get(['/'], bruteforce.prevent, (_req, _res, next) => next()); // Express logger middleware app.use(log.middleware());