chore: Reduce unnecessary variable declarations (#1298)
parent
ad91ce2346
commit
b15115b2cb
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue