Skip to content

Commit d0b0ea9

Browse files
addaleaxrvagg
authored andcommitted
src: remove unnecessary writes in tls_wrap.cc
PR-URL: #21984 Reviewed-By: Anatoli Papirovski <apapirovski@mac.com> Reviewed-By: James M Snell <jasnell@gmail.com>
1 parent b2ac7a7 commit d0b0ea9

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/tls_wrap.cc

-4
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,6 @@ TLSWrap::TLSWrap(Environment* env,
6060
SSLWrap<TLSWrap>(env, sc, kind),
6161
StreamBase(env),
6262
sc_(sc),
63-
enc_in_(nullptr),
64-
enc_out_(nullptr),
6563
write_size_(0),
6664
started_(false),
6765
established_(false),
@@ -86,8 +84,6 @@ TLSWrap::TLSWrap(Environment* env,
8684

8785

8886
TLSWrap::~TLSWrap() {
89-
enc_in_ = nullptr;
90-
enc_out_ = nullptr;
9187
sc_ = nullptr;
9288
}
9389

0 commit comments

Comments
 (0)