From ef536b71b3297fc6cb216af2f42437d9965a3946 Mon Sep 17 00:00:00 2001 From: Max Sokolov Date: Wed, 16 Nov 2016 19:07:49 +0300 Subject: [PATCH] fix for travis-ci --- Sources/TableDirector.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/TableDirector.swift b/Sources/TableDirector.swift index 633eeb6..33846c0 100644 --- a/Sources/TableDirector.swift +++ b/Sources/TableDirector.swift @@ -65,7 +65,7 @@ open class TableDirector: NSObject, UITableViewDataSource, UITableViewDelegate { public convenience init(tableView: UITableView, scrollDelegate: UIScrollViewDelegate? = nil, shouldUseAutomaticCellRegistration: Bool = true, shouldUsePrototypeCellHeightCalculation: Bool = false) { - let heightCalculator = shouldUsePrototypeCellHeightCalculation ? TablePrototypeCellHeightCalculator(tableView: tableView) : nil + let heightCalculator: TablePrototypeCellHeightCalculator? = shouldUsePrototypeCellHeightCalculation ? TablePrototypeCellHeightCalculator(tableView: tableView) : nil self.init(tableView: tableView, scrollDelegate: scrollDelegate, shouldUseAutomaticCellRegistration: shouldUseAutomaticCellRegistration, cellHeightCalculator: heightCalculator) }