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 authored and Michaël Zasso committed 2019-03-27 22:16:15 +01:00
1 parent de5034643f
commit 6de2437c0f
1 file changed
+1 -3
+1 -3
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;
}
};