mirror of
https://github.com/nodejs/node.git
synced 2026-11-25 23:01:06 -05:00
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:
1 parent
de5034643f
commit
6de2437c0f
1 file changed
+1
-3
@@ -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;
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in new issue
Block a user