Skip to content

Commit d6051bf

Browse files
committed
fixup! src: add C++ support for diagnostics channels
1 parent 690fff1 commit d6051bf

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

src/node_diagnostics_channel.cc

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -214,9 +214,8 @@ Channel* Channel::Get(Environment* env, const char* name) {
214214
return nullptr;
215215
}
216216

217-
binding->channels_[index] =
218-
MakeDetachedBaseObject<Channel>(env, wrap, binding, index,
219-
std::string(name));
217+
binding->channels_[index] = MakeDetachedBaseObject<Channel>(
218+
env, wrap, binding, index, std::string(name));
220219
}
221220

222221
Channel* channel = binding->channels_[index].get();
@@ -226,8 +225,7 @@ Channel* Channel::Get(Environment* env, const char* name) {
226225
Isolate* isolate = env->isolate();
227226
HandleScope handle_scope(isolate);
228227
Local<Context> context = env->context();
229-
Local<String> js_name =
230-
String::NewFromUtf8(isolate, name).ToLocalChecked();
228+
Local<String> js_name = String::NewFromUtf8(isolate, name).ToLocalChecked();
231229
Local<Value> argv[] = {js_name};
232230
Local<Value> result;
233231
if (binding->link_callback_.Get(isolate)

0 commit comments

Comments
 (0)