🚑️ Fixes unread counts not displaying correctly

In previous versions of NetNewsWire, there was a redunant `if let` cast that pushed the code to follow the `else` statement only. This commit ensure that the `else` statement code is now executed.
This commit is contained in:
Stuart Breckenridge committed 2025-12-21 13:30:08 +08:00
1 parent 5657647c3e
commit a5680d1ca0
1 file changed
+1 -6
@@ -636,12 +636,7 @@ final class MainFeedCollectionViewController: UICollectionViewController, Undoab
return
}
var node: Node? = nil
if let feed = coordinator.timelineFeed {
node = coordinator.rootNode.descendantNodeRepresentingObject(feed as AnyObject)
} else {
node = coordinator.rootNode.descendantNodeRepresentingObject(unreadCountProvider as AnyObject)
}
let node: Node? = coordinator.rootNode.descendantNodeRepresentingObject(unreadCountProvider as AnyObject)
guard let unreadCountNode = node, let indexPath = coordinator.indexPathFor(unreadCountNode) else { return }