Skip to content

Commit

Permalink
chore: Reduce unnecessary variable declarations (#1298)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhaosaisai authored and dead-horse committed Jan 14, 2019
1 parent ad91ce2 commit b15115b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/application.js
Expand Up @@ -200,9 +200,9 @@ function respond(ctx) {
// allow bypassing koa
if (false === ctx.respond) return;

const res = ctx.res;
if (!ctx.writable) return;

const res = ctx.res;
let body = ctx.body;
const code = ctx.status;

Expand Down

0 comments on commit b15115b

Please sign in to comment.