Skip to content

Commit

Permalink
fix arrow lint error
Browse files Browse the repository at this point in the history
  • Loading branch information
scttcper committed Aug 5, 2016
1 parent 9f261f2 commit a4360d1
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions test/ratelimit.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit a4360d1

Please sign in to comment.