chore: Reduce unnecessary variable declarations (#1298)

master
call me saisai 2019-01-15 00:34:12 +08:00 committed by Yiyu He
parent ad91ce2346
commit b15115b2cb
1 changed files with 1 additions and 1 deletions

View File

@ -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;