Skip to content

Commit

Permalink
refactor: replace if/else condition with a null block by let in modul…
Browse files Browse the repository at this point in the history
…e `owncloudComLibrary`
  • Loading branch information
joragua committed Dec 11, 2024
1 parent d30be87 commit 06bfe20
Showing 1 changed file with 1 addition and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -136,14 +136,7 @@ class LogInterceptor : Interceptor {
LogResponse(
Response(
headers = logHeaders(response.headers),
body = if (responseBody == null) {
null
} else {
Body(
data = responseBody,
length = bodyLength,
)
},
body = responseBody?.let { Body(data = responseBody, length = bodyLength) },
info = ResponseInfo(
id = requestId,
method = request.method,
Expand Down

0 comments on commit 06bfe20

Please sign in to comment.