remove checks in replace method
This commit is contained in:
parent
1df6447d73
commit
aeae61d48b
|
|
@ -26,7 +26,7 @@ struct TableKitNotifications {
|
|||
|
||||
/**
|
||||
A custom action that you can trigger from your cell.
|
||||
You can eacily catch actions using a chaining manner with your row builder.
|
||||
You can easily catch actions using a chaining manner with your row.
|
||||
*/
|
||||
public class TableCellAction {
|
||||
|
||||
|
|
|
|||
|
|
@ -84,13 +84,8 @@ public class TableSection {
|
|||
self.rows.insertContentsOf(rows, at: index)
|
||||
}
|
||||
|
||||
public func replace(rowAt index: Int, with row: Row) -> Bool {
|
||||
|
||||
if index >= 0 && index < rows.count {
|
||||
rows[index] = row
|
||||
return true
|
||||
}
|
||||
return false
|
||||
public func replace(rowAt index: Int, with row: Row) {
|
||||
rows[index] = row
|
||||
}
|
||||
|
||||
public func delete(index index: Int) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue