mirror of
https://github.com/zebrajr/node.git
synced 2026-01-15 12:15:26 +00:00
lib: use destructuring for some constants
This change is to unify the declaration for constants into using destructuring on the top-level-module scope, reducing some redundant code. PR-URL: https://github.com/nodejs/node/pull/16063 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com>
This commit is contained in:
committed by
Tobias Nießen
parent
a3a106865a
commit
212de3c5ec
@@ -27,7 +27,7 @@ const tls = require('tls');
|
||||
const url = require('url');
|
||||
const http = require('http');
|
||||
const util = require('util');
|
||||
const inherits = util.inherits;
|
||||
const { inherits } = util;
|
||||
const debug = util.debuglog('https');
|
||||
const { urlToOptions, searchParamsSymbol } = require('internal/url');
|
||||
const errors = require('internal/errors');
|
||||
|
||||
Reference in New Issue
Block a user