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: #26813
Reviewed-By: Refael Ackermann <[email protected]>
Reviewed-By: Ben Noordhuis <[email protected]>
Reviewed-By: Richard Lau <[email protected]>
Reviewed-By: Anna Henningsen <[email protected]>
  • Loading branch information
gengjiawen authored and targos committed Mar 27, 2019
1 parent de50346 commit 6de2437
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 6de2437

Please sign in to comment.