Skip to content

Commit

Permalink
src: remove unneeded const_cast
Browse files Browse the repository at this point in the history
PR-URL: #14122
Reviewed-By: Anna Henningsen <[email protected]>
Reviewed-By: James M Snell <[email protected]>
  • Loading branch information
bnoordhuis authored and addaleax committed Jul 18, 2017
1 parent 2ee31aa commit efb7aef
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/node_crypto.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2373,10 +2373,9 @@ int SSLWrap<Base>::TLSExtStatusCallback(SSL* s, void* arg) {
if (resp == nullptr) {
arg = Null(env->isolate());
} else {
arg = Buffer::Copy(
env,
reinterpret_cast<char*>(const_cast<unsigned char*>(resp)),
len).ToLocalChecked();
arg =
Buffer::Copy(env, reinterpret_cast<const char*>(resp), len)
.ToLocalChecked();
}

w->MakeCallback(env->onocspresponse_string(), 1, &arg);
Expand Down

0 comments on commit efb7aef

Please sign in to comment.