mirror of
https://github.com/nodejs/node.git
synced 2026-10-14 10:26:26 -04:00
src: remove unneeded const_cast
PR-URL: https://github.com/nodejs/node/pull/14122 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: James M Snell <jasnell@gmail.com>
This commit is contained in:
1 parent
6ac092848a
commit
ee99bfdc65
1 file changed
+3
-4
+3
-4
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user