Skip to content
This repository was archived by the owner on Apr 22, 2023. It is now read-only.

Commit f57ff78

Browse files
committed
src: Remove superfluous static_cast
1 parent 77de207 commit f57ff78

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/string_bytes.cc

+1-2
Original file line numberDiff line numberDiff line change
@@ -556,8 +556,7 @@ Local<Value> StringBytes::Encode(const char* buf,
556556
Local<String> val;
557557
switch (encoding) {
558558
case BUFFER:
559-
return scope.Close(
560-
Buffer::New(static_cast<const char*>(buf), buflen)->handle_);
559+
return scope.Close(Buffer::New(buf, buflen)->handle_);
561560

562561
case ASCII:
563562
if (contains_non_ascii(buf, buflen)) {

0 commit comments

Comments
 (0)