mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2026-11-29 00:31:14 +00:00
Add missing returns.
This commit is contained in:
1 parent
dbf49b1717
commit
195b28f876
1 file changed
+5
@@ -133,6 +133,7 @@ final class SceneDelegate: UIResponder, UIWindowSceneDelegate {
|
||||
if normalizedURLString.mayBeURL {
|
||||
self.coordinator.showAddFeed(initialFeed: normalizedURLString, initialFeedName: nil)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// Show Unread View or Article
|
||||
@@ -151,6 +152,7 @@ final class SceneDelegate: UIResponder, UIWindowSceneDelegate {
|
||||
} else {
|
||||
self.coordinator.selectAllUnreadFeed()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// Show Today View or Article
|
||||
@@ -169,6 +171,7 @@ final class SceneDelegate: UIResponder, UIWindowSceneDelegate {
|
||||
} else {
|
||||
self.coordinator.selectTodayFeed()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// Show Starred View or Article
|
||||
@@ -187,6 +190,7 @@ final class SceneDelegate: UIResponder, UIWindowSceneDelegate {
|
||||
} else {
|
||||
self.coordinator.selectStarredFeed()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
let filename = context.url.standardizedFileURL.path
|
||||
@@ -197,6 +201,7 @@ final class SceneDelegate: UIResponder, UIWindowSceneDelegate {
|
||||
|
||||
// Handle theme URLs: netnewswire://theme/add?url={url}
|
||||
guard let comps = URLComponents(url: context.url, resolvingAgainstBaseURL: false),
|
||||
comps.scheme?.lowercased() == "netnewswire",
|
||||
"theme" == comps.host,
|
||||
let queryItems = comps.queryItems else {
|
||||
return
|
||||
|
||||
Reference in new issue
Block a user