diff --git a/Tablet/TableRowBuilder.swift b/Tablet/TableRowBuilder.swift index 7f7b6c1..7c57528 100644 --- a/Tablet/TableRowBuilder.swift +++ b/Tablet/TableRowBuilder.swift @@ -33,7 +33,7 @@ enum ActionHandler { switch (self) { case .Handler(let handler): handler(data: data) - return true + return nil case .ValueHandler(let handler): return handler(data: data) } @@ -157,10 +157,8 @@ public class TableRowBuilder AnyObject? { - switch action { - case .configure: + if case .configure = action { (cell as? CellType)?.configure(items[itemIndex]) - default: break } return super.invoke(action: action, cell: cell, indexPath: indexPath, itemIndex: itemIndex, userInfo: userInfo) }