From dc96d9828b6edfb5b4f64816a754d13d0289eb95 Mon Sep 17 00:00:00 2001 From: TJ Holowaychuk Date: Mon, 30 Dec 2013 10:04:34 -0800 Subject: [PATCH] refactor Response#status= --- lib/response.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/response.js b/lib/response.js index 79deb04..0cd29cb 100644 --- a/lib/response.js +++ b/lib/response.js @@ -77,8 +77,8 @@ module.exports = { val = n; } - var status = this._status = this.res.statusCode = val; - var noContent = 304 == status || 204 == status; + this._status = this.res.statusCode = val; + var noContent = 304 == val || 204 == val; if (noContent && this.body) this.body = null; },