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:
gengjiawen 2019-03-20 21:09:55 +08:00 committed by Refael Ackermann
parent 86e0296631
commit c757cb1b98

View File

@ -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;
}
};