Skip to content

Commit 30f3433

Browse files
committed
lint
1 parent 5d4a703 commit 30f3433

1 file changed

Lines changed: 6 additions & 10 deletions

File tree

src/node_buffer.cc

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -143,16 +143,12 @@ Local<ArrayBuffer> CallbackInfo::CreateTrackedArrayBuffer(
143143
return ab;
144144
}
145145

146-
147146
CallbackInfo::CallbackInfo(Environment* env,
148-
FreeCallback callback,
149-
char* data,
150-
void* hint)
151-
: callback_(callback),
152-
data_(data),
153-
hint_(hint),
154-
env_(env) {
155-
env->cleanable_queue()->PushFront(static_cast<node::Cleanable*>(this));
147+
FreeCallback callback,
148+
char* data,
149+
void* hint)
150+
: callback_(callback), data_(data), hint_(hint), env_(env) {
151+
env->cleanable_queue()->PushFront(static_cast<node::Cleanable*>(this));
156152
env->external_memory_accounter()->Increase(env->isolate(), sizeof(*this));
157153
}
158154

@@ -186,7 +182,7 @@ void CallbackInfo::CallAndResetCallback() {
186182

187183
void CallbackInfo::OnBackingStoreFree() {
188184
// This method should always release the memory for `this`.
189-
std::unique_ptr<CallbackInfo> self { this };
185+
std::unique_ptr<CallbackInfo> self{this};
190186
// If callback_ == nullptr, that means that the callback has already run from
191187
// the cleanup hook, and there is nothing left to do here besides to clean
192188
// up the memory involved. In particular, the underlying `Environment` may

0 commit comments

Comments
 (0)