Move this variable to the top

This commit is contained in:
Daniel Lugo 2022-01-17 14:28:46 -04:00
parent 3b379f8791
commit 7ab0af1bad

View file

@ -48,6 +48,12 @@ module.exports = async (
mySocketsEvents, mySocketsEvents,
{ serverPort, CA, CA_KEY, useTLS } { serverPort, CA, CA_KEY, useTLS }
) => { ) => {
/**
* @typedef {import('express').Application} Application
*/
const ap = /** @type {Application} */ (app)
try { try {
const Http = Axios.create({ const Http = Axios.create({
httpsAgent: new httpsAgent.Agent( httpsAgent: new httpsAgent.Agent(
@ -2064,12 +2070,6 @@ module.exports = async (
* @typedef {import('express-serve-static-core').RequestHandler<P>} RequestHandler * @typedef {import('express-serve-static-core').RequestHandler<P>} RequestHandler
*/ */
/**
* @typedef {import('express').Application} Application
*/
const ap = /** @type {Application} */ (app)
/** /**
* @typedef {object} FollowsRouteParams * @typedef {object} FollowsRouteParams
* @prop {(string|undefined)=} publicKey * @prop {(string|undefined)=} publicKey