Skip to content

Commit

Permalink
src: apply clang-tidy readability-delete-null-pointer
Browse files Browse the repository at this point in the history
PR-URL: nodejs#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>
  • Loading branch information
gengjiawen authored and targos committed Mar 27, 2019
1 parent 579d043 commit e81b01e
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/js_native_api_v8.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
};

Expand Down

0 comments on commit e81b01e

Please sign in to comment.