From 6313446d9dc2968928cd1093e0e6546fb9fb61e7 Mon Sep 17 00:00:00 2001 From: Adrian Obelmejias Date: Thu, 11 Feb 2016 15:43:51 -0500 Subject: [PATCH] Lint --- src/controllers/index.js | 2 +- src/controllers/users.js | 1 - src/utils/index.js | 2 +- 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/controllers/index.js b/src/controllers/index.js index 8298dd3..9748703 100644 --- a/src/controllers/index.js +++ b/src/controllers/index.js @@ -1,6 +1,6 @@ import users from './users' -exports = module.exports = function Controllers (app) { +exports = module.exports = function Controllers(app) { app .use(users.routes()) .use(users.allowedMethods()) diff --git a/src/controllers/users.js b/src/controllers/users.js index 1e08930..29f6ee7 100644 --- a/src/controllers/users.js +++ b/src/controllers/users.js @@ -1,5 +1,4 @@ import Router from 'koa-router' -import config from '../../config/config' const router = new Router({ prefix: '/users' }) diff --git a/src/utils/index.js b/src/utils/index.js index a02b8bc..4f26450 100644 --- a/src/utils/index.js +++ b/src/utils/index.js @@ -1,7 +1,7 @@ export function errorMiddleware() { return async (ctx, next) => { try { - await next(); + await next() } catch (err) { ctx.status = err.status || 500 ctx.body = err.message