From b15115b2cbfffe15827cd5e4368267d417b72f08 Mon Sep 17 00:00:00 2001 From: call me saisai <1457358080@qq.com> Date: Tue, 15 Jan 2019 00:34:12 +0800 Subject: [PATCH] chore: Reduce unnecessary variable declarations (#1298) --- lib/application.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/application.js b/lib/application.js index 9919d99..1854f37 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;