From 91f82976ceefcad6c59f0104f248fcf13d36a266 Mon Sep 17 00:00:00 2001 From: zhaosaisai Date: Mon, 14 Jan 2019 19:28:22 +0800 Subject: [PATCH] Reduce unnecessary variable declarations --- lib/application.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/application.js b/lib/application.js index 9919d9930..1854f37af 100644 --- a/lib/application.js +++ b/lib/application.js @@ -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;