From a577bde917c5cbc20c15972b9fe50a8c0adf5e94 Mon Sep 17 00:00:00 2001 From: Rich Trott Date: Mon, 3 Jul 2017 13:21:33 -0700 Subject: [PATCH] lib: fix off-by-one indentation MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit In preparation for more robust indentation linting, fix an off-by-one indentation in lib/http_server.js. PR-URL: https://github.com/nodejs/node/pull/14064 Reviewed-By: Tobias Nießen Reviewed-By: Anna Henningsen Reviewed-By: Vse Mozhet Byt Reviewed-By: Colin Ihrig Reviewed-By: Franziska Hinkelmann Reviewed-By: Michaël Zasso Reviewed-By: Luigi Pinca --- lib/_http_server.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/_http_server.js b/lib/_http_server.js index 34e7b6d29c..25567381fe 100644 --- a/lib/_http_server.js +++ b/lib/_http_server.js @@ -187,7 +187,7 @@ function writeHead(statusCode, reason, obj) { statusCode |= 0; if (statusCode < 100 || statusCode > 999) { throw new errors.RangeError('ERR_HTTP_INVALID_STATUS_CODE', - originalStatusCode); + originalStatusCode); }