mirror of
https://github.com/groue/GRDB.swift
synced 2026-11-28 04:24:20 +00:00
TODO: fix throwingFirstError
This commit is contained in:
1 parent
f6e6758525
commit
435f5ff559
1 file changed
+1
-1
@@ -139,7 +139,7 @@ func throwingFirstError<T>(execute: () throws -> T, finally: () throws -> Void)
|
||||
try finally()
|
||||
return result
|
||||
} catch {
|
||||
try? finally()
|
||||
try? finally() // FIXME: finally is called twice if it throws
|
||||
throw error
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user