Skip to content

Commit

Permalink
minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
julian-wls committed Nov 27, 2024
1 parent 5cb2e05 commit 436c2bc
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ internal class MetisModificationServiceImpl(
serverUrl: String,
authToken: String
): NetworkResponse<StandalonePost> {
val x = performNetworkCall {
return performNetworkCall {
ktorProvider.ktorClient.put(serverUrl) {
url {
appendPathSegments(RESOURCE_PATH_SEGMENTS)
Expand All @@ -121,10 +121,8 @@ internal class MetisModificationServiceImpl(
contentType(ContentType.Application.Json)
parameter("displayPriority", displayPriority)
cookieAuth(authToken)
}
}.body()
}
println(x.orNull()?.body())
return x.bind { it.body() }
}

override suspend fun updateAnswerPost(
Expand Down

0 comments on commit 436c2bc

Please sign in to comment.