Skip to content

Commit 2b13a31

Browse files
author
Eugene Kazaev
committed
Minor performance improvements
1 parent 11ba803 commit 2b13a31

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ChatLayout/Classes/Core/Model/StateController.swift

+2-2
Original file line numberDiff line numberDiff line change
@@ -109,9 +109,9 @@ final class StateController<Layout: ChatLayoutRepresentation> {
109109
let locationHeight: CGFloat?
110110
switch state {
111111
case .beforeUpdate:
112-
locationHeight = layoutBeforeUpdate.sections.withUnsafeBufferPointer({ $0.last?.locationHeight })
112+
locationHeight = layoutBeforeUpdate.sections.withUnsafeBufferPointer { $0.last?.locationHeight }
113113
case .afterUpdate:
114-
locationHeight = layoutAfterUpdate?.sections.withUnsafeBufferPointer({ $0.last?.locationHeight })
114+
locationHeight = layoutAfterUpdate?.sections.withUnsafeBufferPointer { $0.last?.locationHeight }
115115
}
116116

117117
guard let locationHeight = locationHeight else {

0 commit comments

Comments
 (0)