Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/main/kotlin/data/TaskRepository.kt
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ object TaskRepository {
fun find(id: Int): Task? = tasks.find { it.id == id }

fun update(task: Task) {
tasks.find { it.id == task.id }?.let { it.title = task.title }
find(task.id)?.let { it.title = task.title }
persist()
}

Expand Down
2 changes: 1 addition & 1 deletion src/main/kotlin/model/Task.kt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import java.util.UUID

/**
* Task data model.
* Represents a single todo item in the task manager.
* Represents a single 'to do' item in the task manager.
*
* **Privacy note**: No PII stored. Tasks are anonymous and associated
* only with session IDs (also anonymous).
Expand Down