From 32b93c857f89283f276be5ae2e39c9d11c87fece Mon Sep 17 00:00:00 2001 From: TheArcaneBrony Date: Sat, 14 Jan 2023 13:33:24 +0100 Subject: var -> let Signed-off-by: TheArcaneBrony --- src/api/util/handlers/route.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/api/util/handlers/route.ts') diff --git a/src/api/util/handlers/route.ts b/src/api/util/handlers/route.ts index 5dcae953..a8911613 100644 --- a/src/api/util/handlers/route.ts +++ b/src/api/util/handlers/route.ts @@ -43,7 +43,7 @@ export interface RouteOptions { } export function route(opts: RouteOptions) { - var validate: AnyValidateFunction | undefined; + let validate: AnyValidateFunction | undefined; if (opts.body) { validate = ajv.getSchema(opts.body); if (!validate) throw new Error(`Body schema ${opts.body} not found`); -- cgit 1.5.1