Skip to content

Commit

Permalink
Refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
jaguililla committed Jun 16, 2024
1 parent a29ebe5 commit e3a4c1a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/kotlin/Router.kt
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ class Router(private val store: TaskStore) {
}

internal fun HttpContext.getTask(id: String, store: TaskStore): HttpContext {
val task = store.findOne(id)?.let { task -> task.convert(TaskRetrievalResponse::class) }
val task = store.findOne(id)?.convert(TaskRetrievalResponse::class)
return if (task != null) {
ok(task)
} else {
Expand Down

0 comments on commit e3a4c1a

Please sign in to comment.