From 3f568218beacb79cc5e21c590f2ea8e2cea2ec95 Mon Sep 17 00:00:00 2001 From: smackgg Date: Wed, 9 Mar 2022 17:52:35 +0800 Subject: [PATCH] fix: fixed eslint --- lib/swagger.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/swagger.js b/lib/swagger.js index 9e86ced..526e300 100644 --- a/lib/swagger.js +++ b/lib/swagger.js @@ -25,8 +25,7 @@ class Swagger { this.swaggerObject = utils.prepareSwaggerObject(this.app, utils.prepareDefaultOptions(this.config)); // Load router file - let routerPath; - routerPath = path.join(this.baseDir, `/app/router.${this.config.ts ? 'ts' : 'js'}`); + const routerPath = path.join(this.baseDir, `/app/router.${this.config.ts ? 'ts' : 'js'}`); this.router = new Router(this.app, routerPath); this.router.getRouter();