Skip to content

Commit c3fbea0

Browse files
committed
chore: formatting
Signed-off-by: Tommy van der Vorst <tommy@pixelspark.nl>
1 parent b251323 commit c3fbea0

File tree

2 files changed

+12
-5
lines changed

2 files changed

+12
-5
lines changed

Sushitrain/BackgroundManager.swift

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,15 @@ import BackgroundTasks
5858

5959
// Schedule background synchronization task
6060
// Must start on a specified queue (here we simply use main) to prevent a crash in dispatch_assert_queue
61-
BGTaskScheduler.shared.register(forTaskWithIdentifier: Self.longBackgroundSyncID, using: DispatchQueue.main, launchHandler: self.backgroundLaunchHandler)
62-
BGTaskScheduler.shared.register(forTaskWithIdentifier: Self.shortBackgroundSyncID, using: DispatchQueue.main, launchHandler: self.backgroundLaunchHandler)
63-
BGTaskScheduler.shared.register(forTaskWithIdentifier: Self.continuedBackgroundSyncID, using: DispatchQueue.main, launchHandler: self.backgroundLaunchHandler)
61+
BGTaskScheduler.shared.register(
62+
forTaskWithIdentifier: Self.longBackgroundSyncID, using: DispatchQueue.main,
63+
launchHandler: self.backgroundLaunchHandler)
64+
BGTaskScheduler.shared.register(
65+
forTaskWithIdentifier: Self.shortBackgroundSyncID, using: DispatchQueue.main,
66+
launchHandler: self.backgroundLaunchHandler)
67+
BGTaskScheduler.shared.register(
68+
forTaskWithIdentifier: Self.continuedBackgroundSyncID, using: DispatchQueue.main,
69+
launchHandler: self.backgroundLaunchHandler)
6470

6571
updateBackgroundRunHistory(appending: nil)
6672
_ = self.scheduleBackgroundSync()
@@ -85,7 +91,7 @@ import BackgroundTasks
8591
await self.handleBackgroundSync(task: task)
8692
}
8793
}
88-
94+
8995
func inactivate() {
9096
if self.currentBackgroundTask == nil {
9197
Log.info(

Sushitrain/Intents.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,8 @@ struct SynchronizeIntent: AppIntent {
152152
@Dependency private var appState: AppState
153153

154154
@Parameter(
155-
title: "Time (seconds)", description: "How much time to allow for synchronization (must be between 1 and 15 seconds).", default: 10,
155+
title: "Time (seconds)",
156+
description: "How much time to allow for synchronization (must be between 1 and 15 seconds).", default: 10,
156157
controlStyle: .field, inclusiveRange: (0, 15))
157158
var time: Int
158159

0 commit comments

Comments
 (0)