From aaea70693e0b186672c0912a2bea6a68f691d9f8 Mon Sep 17 00:00:00 2001 From: Daniel Bevenius Date: Thu, 19 Apr 2018 11:13:17 +0200 Subject: lib: remove unused binding const MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Reviewed-By: Colin Ihrig Reviewed-By: James M Snell Reviewed-By: Richard Lau Reviewed-By: Tiancheng "Timothy" Gu Reviewed-By: Yuta Hiroto Reviewed-By: Trivikram Kamat Reviewed-By: Tobias Nießen --- lib/_tls_common.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'lib/_tls_common.js') 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)) { -- cgit v1.2.3