chore: Reduce unnecessary variable declarations (#1298)

This commit is contained in:
call me saisai 2019-01-15 00:34:12 +08:00 committed by Yiyu He
parent ad91ce2346
commit b15115b2cb

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;