diff options
author | Daniel Bevenius <daniel.bevenius@gmail.com> | 2018-04-19 11:13:17 +0200 |
---|---|---|
committer | Anatoli Papirovski <apapirovski@mac.com> | 2018-04-22 11:21:04 +0200 |
commit | aaea70693e0b186672c0912a2bea6a68f691d9f8 (patch) | |
tree | 24301a59d30ed252ac1528db75d1fcfd3868ab3d /lib/_tls_common.js | |
parent | f48ca9c9c151fa375640862675abf964099fbb1d (diff) | |
download | android-node-v8-aaea70693e0b186672c0912a2bea6a68f691d9f8.tar.gz android-node-v8-aaea70693e0b186672c0912a2bea6a68f691d9f8.tar.bz2 android-node-v8-aaea70693e0b186672c0912a2bea6a68f691d9f8.zip |
lib: remove unused binding const
This commit removes the binding const as it is only used in one place
which is in the following line.
PR-URL: https://github.com/nodejs/node/pull/20144
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com>
Reviewed-By: Yuta Hiroto <hello@hiroppy.me>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Diffstat (limited to 'lib/_tls_common.js')
-rw-r--r-- | lib/_tls_common.js | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/_tls_common.js b/lib/_tls_common.js index fb6ac34d1e..a9fe0d8f06 100644 --- a/lib/_tls_common.js +++ b/lib/_tls_common.js @@ -34,8 +34,7 @@ const { SSL_OP_CIPHER_SERVER_PREFERENCE } = process.binding('constants').crypto; // Lazily loaded var crypto = null; -const binding = process.binding('crypto'); -const NativeSecureContext = binding.SecureContext; +const { SecureContext: NativeSecureContext } = process.binding('crypto'); function SecureContext(secureProtocol, secureOptions, context) { if (!(this instanceof SecureContext)) { |