Skip to content

Commit

Permalink
Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
chrissearle committed Nov 20, 2024
1 parent 03b6e22 commit f823a6e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/main/kotlin/no/java/conf/plugins/Respond.kt
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@ suspend inline fun <reified A : Any> Either<ApiError, A>.respond(status: HttpSta
is Either.Right -> call.respond(status, value)
}

suspend fun RoutingContext.respond(error: ApiError) =
call.respond(error.statusCode, error.messageMap())
suspend fun RoutingContext.respond(error: ApiError) = call.respond(error.statusCode, error.messageMap())

context(RoutingContext)
suspend inline fun <reified A : Any> Either<ApiError, A>.respondRedirect(url: String) =
Expand Down

0 comments on commit f823a6e

Please sign in to comment.