Skip to content

Commit 875997f

Browse files
committed
chore: formatting and lints
Signed-off-by: Tommy van der Vorst <tommy@pixelspark.nl>
1 parent faa0339 commit 875997f

File tree

4 files changed

+11
-6
lines changed

4 files changed

+11
-6
lines changed

Sushitrain/BackgroundManager.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,9 @@ struct BackgroundSyncRun: Codable, Equatable {
2626
enum BackgroundTaskType: String, Codable, Equatable {
2727
case short = "nl.t-shaped.Sushitrain.short-background-sync"
2828
case long = "nl.t-shaped.Sushitrain.background-sync"
29-
case continued = "nl.t-shaped.Sushitrain.continued-background-sync" // For some reason, this one must have the exact App bundle ID as prefix
29+
30+
// For some reason, this one must have the exact App bundle ID as prefix (case-sensitive)
31+
case continued = "nl.t-shaped.Sushitrain.continued-background-sync"
3032

3133
var identifier: String {
3234
return self.rawValue

Sushitrain/DevicesView.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -339,13 +339,13 @@ struct LatencyView: View {
339339
Divider()
340340

341341
Button("Disable all devices") {
342-
self.peers.forEach { peer in
342+
for peer in self.peers {
343343
self.appState.setDevice(peer, pausedByUser: true)
344344
}
345345
}.disabled(self.peers.allSatisfy { self.appState.isDevicePausedByUser($0) })
346346

347347
Button("Enable all devices") {
348-
self.peers.forEach { peer in
348+
for peer in self.peers {
349349
self.appState.setDevice(peer, pausedByUser: false)
350350
}
351351
}.disabled(self.peers.allSatisfy { !self.appState.isDevicePausedByUser($0) })

Sushitrain/PhotoBackup.swift

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,11 @@ enum PhotoSyncCategories: String, Codable {
1717
enum PhotoBackupTimeZone: RawRepresentable, Codable, Equatable, Hashable {
1818
typealias RawValue = String
1919

20-
case current // Use the current timezone when exporting. Photos may be exported twice if you switch timezones
21-
case specific(timeZone: String) // Use a specific timezone. Photos may be exported with a day that differs from the day the photo was taken
20+
// Use the current timezone when exporting. Photos may be exported twice if you switch timezones
21+
case current
22+
23+
// Use a specific timezone. Photos may be exported with a day that differs from the day the photo was taken
24+
case specific(timeZone: String)
2225

2326
init(rawValue: String) {
2427
if rawValue == "current" {

Sushitrain/StartView.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -662,7 +662,7 @@ struct StartView: View {
662662
self.longTimeNotSeenDevices = await self.appState.getPeersNotSeenForALongTime()
663663

664664
isDiskSpaceSufficient = appState.client.isDiskSpaceSufficient()
665-
665+
666666
// Determine number of changes
667667
self.changesCount = appState.lastChanges.count(where: { change in
668668
guard let folder = appState.client.folder(withID: change.folderID) else {

0 commit comments

Comments
 (0)