TODO: fix throwingFirstError

This commit is contained in:
Gwendal Roué authored and GitHub committed 2020-03-10 07:41:15 +01:00
1 parent f6e6758525
commit 435f5ff559
1 file changed
+1 -1
+1 -1
View File
@@ -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
}
}