Skip to content

Commit 1b32337

Browse files
committed
Returns
1 parent e76d0ee commit 1b32337

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Sources/Testing/Support/Locked.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ extension Locked {
102102
_storage.owningThreadID.store(0, ordering: .sequentiallyConsistent)
103103
}
104104
#endif
105-
try body(&rawValue)
105+
return try body(&rawValue)
106106
}
107107
#endif
108108
}
@@ -147,7 +147,7 @@ extension Locked {
147147
_storage.owningThreadID.store(0, ordering: .sequentiallyConsistent)
148148
}
149149
#endif
150-
try body(&rawValue)
150+
return try body(&rawValue)
151151
}
152152
#endif
153153
}

0 commit comments

Comments
 (0)