Skip to content

Commit

Permalink
fix lint warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
Carmine DiMascio committed May 14, 2020
1 parent cf2ca7f commit ace3534
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/templates/server/common/swagger.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -46,7 +46,7 @@ export default function (app, routes) {

// eslint-disable-next-line no-unused-vars, no-shadow
app.use(errorHandler);
resolve();
return resolve();
});
});
}

0 comments on commit ace3534

Please sign in to comment.