Skip to content

Commit

Permalink
chore: Reduce unnecessary variable declarations (koajs#1298)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhaosaisai authored and kiku-jw committed Feb 26, 2019
1 parent 91a7839 commit 337f5f4
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 337f5f4

Please sign in to comment.