Fix Swiftlint warning

This commit is contained in:
Gwendal Roué committed 2024-09-21 10:39:36 +02:00
1 parent 2845570929
commit 7707bbd1e9
1 file changed
+3 -1
+3 -1
View File
@@ -45,7 +45,9 @@ final class SchedulingWatchdog: @unchecked Sendable {
}
/// Must be called from a DispatchQueue with an attached SchedulingWatchdog.
static func inheritingAllowedDatabases<T>(_ allowedDatabases: [Database], execute body: () throws -> T) rethrows -> T {
static func inheritingAllowedDatabases<T>(
_ allowedDatabases: [Database], execute body: () throws -> T
) rethrows -> T {
let watchdog = current!
let backup = watchdog.allowedDatabases
watchdog.allowedDatabases.append(contentsOf: allowedDatabases)