From ace3534592d8bbbd3003c367a413673a362b695a Mon Sep 17 00:00:00 2001 From: Carmine DiMascio Date: Thu, 14 May 2020 15:32:32 -0400 Subject: [PATCH] fix lint warnings --- app/templates/server/common/swagger.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/templates/server/common/swagger.js b/app/templates/server/common/swagger.js index 214f32d..63c1ca4 100644 --- a/app/templates/server/common/swagger.js +++ b/app/templates/server/common/swagger.js @@ -2,7 +2,7 @@ import middleware from 'swagger-express-middleware'; import * as path from 'path'; import errorHandler from '../api/middlewares/error.handler'; -export default function (app, routes) { +export default function swagger(app, routes) { return new Promise((resolve, reject) => { middleware(path.join(__dirname, 'api.yml'), app, (err, mw) => { if (err) { @@ -46,7 +46,7 @@ export default function (app, routes) { // eslint-disable-next-line no-unused-vars, no-shadow app.use(errorHandler); - resolve(); + return resolve(); }); }); }