Skip to content

Commit 5eaa296

Browse files
committed
Remove missing return statement
1 parent d26589b commit 5eaa296

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Flow/Locking.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public final class Mutex {
3333

3434
extension pthread_mutex_t {
3535
mutating func withPointer<T>(_ body: (PThreadMutex) throws -> T) rethrows -> T {
36-
try withUnsafeMutablePointer(to: &self, body)
36+
return try withUnsafeMutablePointer(to: &self, body)
3737
}
3838

3939
mutating func initialize() {

0 commit comments

Comments
 (0)