Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit 46dbb00

Browse files
committed
assert is_valid
1 parent 75a5f5b commit 46dbb00

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

shell/platform/fuchsia/dart-pkg/zircon/lib/src/zd_handle.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ class ZDHandle {
3030
}
3131

3232
bool close() {
33+
assert(isValid());
3334
if (isValid()) {
3435
int? ret = zirconFFIBindings?.zircon_dart_handle_close(_ptr);
3536
return ret == 1;

0 commit comments

Comments
 (0)