Fix lint issues.

This commit is contained in:
Brent Simmons
2025-01-23 22:52:36 -08:00
parent ae2b017ae0
commit 4b1b285d0b
19 changed files with 98 additions and 43 deletions

View File

@@ -68,11 +68,11 @@ final class AppDefaults {
}()
let isFirstRun: Bool = {
if let _ = AppDefaults.store.object(forKey: Key.firstRunDate) as? Date {
return false
if AppDefaults.store.object(forKey: Key.firstRunDate) as? Date == nil {
firstRunDate = Date()
return true
}
firstRunDate = Date()
return true
return false
}()
static var userInterfaceColorPalette: UserInterfaceColorPalette {