mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2026-12-02 10:22:35 +00:00
Fix various SwiftLint warnings.
This commit is contained in:
1 parent
29ce47f30a
commit
9de8c69f19
4 files changed
+9
-14
No files matched your search
@@ -40,8 +40,8 @@ struct FeedbinSubscriptionJSONFeed: Codable, Sendable {
|
||||
let favicon: String?
|
||||
let icon: String?
|
||||
enum CodingKeys: String, CodingKey {
|
||||
case favicon = "favicon"
|
||||
case icon = "icon"
|
||||
case favicon
|
||||
case icon
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -53,9 +53,7 @@ final class ReaderAPIAccountDelegate: AccountDelegate {
|
||||
}
|
||||
|
||||
@MainActor var server: String? {
|
||||
get {
|
||||
return caller.server
|
||||
}
|
||||
caller.server
|
||||
}
|
||||
|
||||
var isOPMLImportInProgress = false
|
||||
@@ -509,9 +507,9 @@ private extension ReaderAPIAccountDelegate {
|
||||
|
||||
let folderTags: [ReaderAPITag]
|
||||
if variant == .inoreader {
|
||||
folderTags = tags.filter{ $0.type == "folder" }
|
||||
folderTags = tags.filter { $0.type == "folder" }
|
||||
} else {
|
||||
folderTags = tags.filter{ $0.tagID.contains("/label/") }
|
||||
folderTags = tags.filter { $0.tagID.contains("/label/") }
|
||||
}
|
||||
|
||||
guard !folderTags.isEmpty else { return }
|
||||
|
||||
@@ -137,7 +137,7 @@ public final class DatabaseQueue: Sendable {
|
||||
/// Run all the lines that start with "create".
|
||||
/// Use this to create tables, indexes, etc.
|
||||
public func runCreateStatements(_ statements: String) throws {
|
||||
nonisolated(unsafe) var error: DatabaseError? = nil
|
||||
nonisolated(unsafe) var error: DatabaseError?
|
||||
|
||||
runInDatabaseSync { result in
|
||||
Self.logger.debug("DatabaseQueue: runCreateStatements")
|
||||
@@ -214,8 +214,7 @@ private extension DatabaseQueue {
|
||||
autoreleasepool {
|
||||
if state.isSuspended {
|
||||
databaseBlock(.failure(.isSuspended))
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
if useTransaction {
|
||||
state.database.beginTransaction()
|
||||
}
|
||||
|
||||
@@ -71,7 +71,7 @@ struct HTTP4xxResponse {
|
||||
sessionConfiguration.httpAdditionalHeaders = userAgentHeaders
|
||||
}
|
||||
|
||||
urlSession = URLSession(configuration: sessionConfiguration, delegate: self, delegateQueue: OperationQueue.main)
|
||||
urlSession = URLSession(configuration: sessionConfiguration, delegate: self, delegateQueue: OperationQueue.main)
|
||||
}
|
||||
|
||||
deinit {
|
||||
@@ -318,9 +318,7 @@ private extension DownloadSession {
|
||||
}
|
||||
urls.insert(oneRedirectURL)
|
||||
currentURL = oneRedirectURL
|
||||
}
|
||||
|
||||
else {
|
||||
} else {
|
||||
break
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user