mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2026-11-29 08:42:51 +00:00
Fix various SwiftLint warnings.
This commit is contained in:
1 parent
d9216a3275
commit
9ff1bd9836
104 files changed
+365
-363
No files matched your search
@@ -93,7 +93,7 @@ import RSCore
|
||||
// MARK: --- Scriptable elements ---
|
||||
|
||||
@objc(feeds)
|
||||
var feeds: NSArray {
|
||||
var feeds: NSArray {
|
||||
account.topLevelFeeds.map { ScriptableFeed($0, container: self) } as NSArray
|
||||
}
|
||||
|
||||
@@ -129,7 +129,7 @@ import RSCore
|
||||
}
|
||||
|
||||
@objc(folders)
|
||||
var folders: NSArray {
|
||||
var folders: NSArray {
|
||||
let foldersSet = account.folders ?? Set<Folder>()
|
||||
let folders = Array(foldersSet)
|
||||
return folders.map { ScriptableFolder($0, container: self) } as NSArray
|
||||
@@ -164,7 +164,7 @@ import RSCore
|
||||
// MARK: --- Scriptable properties ---
|
||||
|
||||
@objc(allFeeds)
|
||||
var allFeeds: NSArray {
|
||||
var allFeeds: NSArray {
|
||||
let allFeeds = account.flattenedFeeds()
|
||||
let scriptableFeeds = allFeeds.map { feed in
|
||||
ScriptableFeed(feed, container: self)
|
||||
@@ -204,7 +204,7 @@ import RSCore
|
||||
}
|
||||
|
||||
@objc(opmlRepresentation)
|
||||
var opmlRepresentation: String {
|
||||
var opmlRepresentation: String {
|
||||
self.account.OPMLString(indentLevel: 0)
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user