mirror of
https://github.com/nodejs/node.git
synced 2024-12-01 16:10:02 +01:00
src: Remove superfluous static_cast
This commit is contained in:
parent
77de207089
commit
f57ff787aa
@ -556,8 +556,7 @@ Local<Value> StringBytes::Encode(const char* buf,
|
||||
Local<String> val;
|
||||
switch (encoding) {
|
||||
case BUFFER:
|
||||
return scope.Close(
|
||||
Buffer::New(static_cast<const char*>(buf), buflen)->handle_);
|
||||
return scope.Close(Buffer::New(buf, buflen)->handle_);
|
||||
|
||||
case ASCII:
|
||||
if (contains_non_ascii(buf, buflen)) {
|
||||
|
Loading…
Reference in New Issue
Block a user