Skip to content

Commit 6de2437

Browse files
gengjiawentargos
authored andcommitted
src: apply clang-tidy readability-delete-null-pointer
PR-URL: #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>
1 parent de50346 commit 6de2437

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/js_native_api_v8.cc

+1-3
Original file line numberDiff line numberDiff line change
@@ -395,9 +395,7 @@ struct CallbackBundle {
395395
// This will be called when the v8::External containing `this` pointer
396396
// is being GC-ed.
397397
CallbackBundle* bundle = info.GetParameter();
398-
if (bundle != nullptr) {
399-
delete bundle;
400-
}
398+
delete bundle;
401399
}
402400
};
403401

0 commit comments

Comments
 (0)