From 7ab0af1badf517435ea1a3e3189435fb3a3f1ce0 Mon Sep 17 00:00:00 2001 From: Daniel Lugo Date: Mon, 17 Jan 2022 14:28:46 -0400 Subject: [PATCH] Move this variable to the top --- src/routes.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/routes.js b/src/routes.js index a8409b4e..93166f6b 100644 --- a/src/routes.js +++ b/src/routes.js @@ -48,6 +48,12 @@ module.exports = async ( mySocketsEvents, { serverPort, CA, CA_KEY, useTLS } ) => { + /** + * @typedef {import('express').Application} Application + */ + + const ap = /** @type {Application} */ (app) + try { const Http = Axios.create({ httpsAgent: new httpsAgent.Agent( @@ -2064,12 +2070,6 @@ module.exports = async ( * @typedef {import('express-serve-static-core').RequestHandler

} RequestHandler */ - /** - * @typedef {import('express').Application} Application - */ - - const ap = /** @type {Application} */ (app) - /** * @typedef {object} FollowsRouteParams * @prop {(string|undefined)=} publicKey