mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2025-08-12 06:26:36 +00:00
Fix lint issues.
This commit is contained in:
@@ -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 = {
|
||||
|
||||
@@ -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 = {
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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.")
|
||||
|
||||
Reference in New Issue
Block a user