Skip to content

Commit 3005895

Browse files
committed
silence warnings
1 parent cb9e729 commit 3005895

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Sources/JavaKit/JavaKitVM/JavaVirtualMachine.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,11 +119,11 @@ public final class JavaVirtualMachine: @unchecked Sendable {
119119
throw error
120120
}
121121

122-
_ = destroyOnDeinit.withLock { $0 = false } // we destroyed explicitly, disable destroy in deinit
122+
destroyOnDeinit.withLock { $0 = false } // we destroyed explicitly, disable destroy in deinit
123123
}
124124

125125
deinit {
126-
if destroyOnDeinit.withLock { $0 } {
126+
if destroyOnDeinit.withLock({ $0 }) {
127127
do {
128128
try destroyJVM()
129129
} catch {

0 commit comments

Comments
 (0)