From a4360d119d784bc2b5aefd5b518760e92620a432 Mon Sep 17 00:00:00 2001 From: Scott Cooper Date: Thu, 4 Aug 2016 23:22:04 -0700 Subject: [PATCH] fix arrow lint error --- test/ratelimit.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/test/ratelimit.js b/test/ratelimit.js index b4bebb9..f82ff77 100644 --- a/test/ratelimit.js +++ b/test/ratelimit.js @@ -87,12 +87,11 @@ describe('ratelimit middleware', () => { beforeEach((done) => { app = new Koa(); - app.use((ctx, next) => { - return next().catch((e) => { + app.use((ctx, next) => next() + .catch((e) => { ctx.body = e.message; ctx.set(e.headers); - }); - }); + })); app.use(ratelimit({ duration: rateLimitDuration,