Fix lint issues.

This commit is contained in:
Brent Simmons
2025-02-01 21:39:17 -08:00
parent d2fb815919
commit b5dfa7a440
6 changed files with 7 additions and 7 deletions

View File

@@ -15,7 +15,7 @@ import Account
final class ExtensionContainersFile {
static let shared = ExtensionContainersFile()
private static var log = OSLog(subsystem: Bundle.main.bundleIdentifier!, category: "extensionContainersFile")
private static var filePath: String = {

View File

@@ -13,7 +13,7 @@ import Account
final class ExtensionFeedAddRequestFile: NSObject, NSFilePresenter {
static let shared = ExtensionFeedAddRequestFile()
private static var log = OSLog(subsystem: Bundle.main.bundleIdentifier!, category: "extensionFeedAddRequestFile")
private static var filePath: String = {

View File

@@ -12,7 +12,7 @@ import Account
final class ArticleStatusSyncTimer {
static let shared = ArticleStatusSyncTimer()
private static let intervalSeconds = Double(120)
var shuttingDown = false
@@ -33,7 +33,7 @@ final class ArticleStatusSyncTimer {
shuttingDown = true
invalidate()
}
func invalidate() {
guard let timer = internalTimer else {
return

View File

@@ -14,7 +14,7 @@ import UserNotifications
final class UserNotificationManager: NSObject {
static let shared = UserNotificationManager()
override init() {
super.init()
NotificationCenter.default.addObserver(self, selector: #selector(accountDidDownloadArticles(_:)), name: .AccountDidDownloadArticles, object: nil)

View File

@@ -17,7 +17,7 @@ import Account
public final class WidgetDataEncoder {
static let shared = WidgetDataEncoder()
private let log = OSLog(subsystem: Bundle.main.bundleIdentifier!, category: "Application")
private let fetchLimit = 7

View File

@@ -133,7 +133,7 @@ private extension BackgroundTaskManager {
}
}
}
func waitToComplete(completion: @escaping (Bool) -> Void) {
guard UIApplication.shared.applicationState == .background else {
Self.logger.info("App came back to foreground, no longer waiting.")