Skip to content

Commit 881fca4

Browse files
danbevjasnell
authored andcommitted
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: #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>
1 parent bc6965b commit 881fca4

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/_tls_common.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,7 @@ const { SSL_OP_CIPHER_SERVER_PREFERENCE } = process.binding('constants').crypto;
3434
// Lazily loaded
3535
var crypto = null;
3636

37-
const binding = process.binding('crypto');
38-
const NativeSecureContext = binding.SecureContext;
37+
const { SecureContext: NativeSecureContext } = process.binding('crypto');
3938

4039
function SecureContext(secureProtocol, secureOptions, context) {
4140
if (!(this instanceof SecureContext)) {

0 commit comments

Comments
 (0)