lib: fix off-by-one indentation
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 <tniessen@tnie.de> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Franziska Hinkelmann <franziska.hinkelmann@gmail.com> Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
This commit is contained in:
parent
4dd7d09723
commit
a577bde917
@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user