Skip to content

Commit b15115b

Browse files
zhaosaisaidead-horse
authored andcommitted
chore: Reduce unnecessary variable declarations (#1298)
1 parent ad91ce2 commit b15115b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/application.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -200,9 +200,9 @@ function respond(ctx) {
200200
// allow bypassing koa
201201
if (false === ctx.respond) return;
202202

203-
const res = ctx.res;
204203
if (!ctx.writable) return;
205204

205+
const res = ctx.res;
206206
let body = ctx.body;
207207
const code = ctx.status;
208208

0 commit comments

Comments
 (0)