Skip to content

Commit fd449b1

Browse files
committed
remove unnecessary whitespace change
1 parent 73eb342 commit fd449b1

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

src/string_bytes.cc

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -550,14 +550,15 @@ MaybeLocal<Value> StringBytes::Encode(Isolate* isolate,
550550
MaybeLocal<String> val;
551551

552552
switch (encoding) {
553-
case BUFFER: {
554-
auto maybe_buf = Buffer::Copy(isolate, buf, buflen);
555-
Local<v8::Object> buf;
556-
if (!maybe_buf.ToLocal(&buf)) {
557-
isolate->ThrowException(node::ERR_MEMORY_ALLOCATION_FAILED(isolate));
553+
case BUFFER:
554+
{
555+
auto maybe_buf = Buffer::Copy(isolate, buf, buflen);
556+
Local<v8::Object> buf;
557+
if (!maybe_buf.ToLocal(&buf)) {
558+
isolate->ThrowException(node::ERR_MEMORY_ALLOCATION_FAILED(isolate));
559+
}
560+
return buf;
558561
}
559-
return buf;
560-
}
561562

562563
case ASCII:
563564
buflen = keep_buflen_in_range(buflen);

0 commit comments

Comments
 (0)