mirror of
https://github.com/MessageKit/MessageKit.git
synced 2026-02-06 19:03:19 +00:00
Put return on a newline within indexPathForLastItem
This commit is contained in:
@@ -51,7 +51,9 @@ open class MessagesCollectionView: UICollectionView {
|
||||
for offset in 1...numberOfSections {
|
||||
let section = numberOfSections - offset
|
||||
let lastItem = numberOfItems(inSection: section) - 1
|
||||
if lastItem >= 0 { return IndexPath(item: lastItem, section: section) }
|
||||
if lastItem >= 0 {
|
||||
return IndexPath(item: lastItem, section: section)
|
||||
}
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user