src: apply clang-tidy readability-delete-null-pointer
PR-URL: https://github.com/nodejs/node/pull/26813 Reviewed-By: Refael Ackermann <refack@gmail.com> Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: Anna Henningsen <anna@addaleax.net>
This commit is contained in:
parent
86e0296631
commit
c757cb1b98
@ -395,9 +395,7 @@ struct CallbackBundle {
|
||||
// This will be called when the v8::External containing `this` pointer
|
||||
// is being GC-ed.
|
||||
CallbackBundle* bundle = info.GetParameter();
|
||||
if (bundle != nullptr) {
|
||||
delete bundle;
|
||||
}
|
||||
delete bundle;
|
||||
}
|
||||
};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user