♻️ Make dequeue code consistent

This commit is contained in:
Stuart Breckenridge committed 2026-01-17 12:48:35 +08:00
1 parent 5893ecaf89
commit 5a7bb40dd9
1 file changed
+3 -3
@@ -234,9 +234,9 @@ final class MainFeedCollectionViewController: UICollectionViewController, Undoab
override func collectionView(_ collectionView: UICollectionView, cellForItemAt indexPath: IndexPath) -> UICollectionViewCell {
guard let node = coordinator.nodeFor(indexPath), node.representedObject is Folder else {
let cell = collectionView.dequeueReusableCell(withReuseIdentifier: reuseIdentifier, for: indexPath) as? MainFeedCollectionViewCell
configure(cell!, indexPath: indexPath)
return cell!
let cell = collectionView.dequeueReusableCell(withReuseIdentifier: reuseIdentifier, for: indexPath) as! MainFeedCollectionViewCell
configure(cell, indexPath: indexPath)
return cell
}
let cell = collectionView.dequeueReusableCell(withReuseIdentifier: folderIdentifier, for: indexPath) as! MainFeedCollectionViewFolderCell