Skip to content

Commit

Permalink
Spotless Apply
Browse files Browse the repository at this point in the history
  • Loading branch information
skydoves committed Jan 21, 2025
1 parent 6cfc806 commit 956c1ba
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ retrofit = "2.11.0"
okio = "3.10.2"
okhttp = "4.12.0"
ktor = "3.0.3"
ktorfit = "2.2.0"
ktorfit = "2.1.0"
ktorfitKSP = "2.2.0-1.0.29"
coroutines = "1.10.1"
kotlinSerialization = "1.8.0"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,8 @@ public object EmptyBodyInterceptor : Interceptor {

override fun intercept(chain: Interceptor.Chain): Response {
val response = chain.proceed(chain.request())
if (!response.isSuccessful || response.code.let {
it != StatusCode.NoContent.code && it != StatusCode.ResetContent.code
}
if (!response.isSuccessful ||
(response.code != StatusCode.NoContent.code && response.code != StatusCode.ResetContent.code)
) {
return response
}
Expand Down

0 comments on commit 956c1ba

Please sign in to comment.