src: apply clang-tidy readability-delete-null-pointer · nodejs/node@6de2437 (original) (raw)
Navigation Menu
- Explore
- Pricing
Provide feedback
Saved searches
Use saved searches to filter your results more quickly
Commit 6de2437
authored and
committed
src: apply clang-tidy readability-delete-null-pointer
PR-URL: #26813Reviewed-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
File tree
1 file changed
lines changed
1 file changed
lines changed
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -395,9 +395,7 @@ struct CallbackBundle { | ||
395 | 395 | // This will be called when the v8::External containing `this` pointer |
396 | 396 | // is being GC-ed. |
397 | 397 | CallbackBundle* bundle = info.GetParameter(); |
398 | -if (bundle != nullptr) { | |
399 | -delete bundle; | |
400 | - } | |
398 | +delete bundle; | |
401 | 399 | } |
402 | 400 | }; |
403 | 401 |