put the comment where it should be

This commit is contained in:
Aria Moradi 2021-05-20 20:27:22 +04:30
parent 733b017936
commit c00ca23a8b

View File

@ -41,6 +41,7 @@ object ExtensionGithubService {
} }
} }
// ref: https://stackoverflow.com/questions/51901333/okhttp-3-how-to-decompress-gzip-deflate-response-manually-using-java-android
private class UnzippingInterceptor : Interceptor { private class UnzippingInterceptor : Interceptor {
@Throws(IOException::class) @Throws(IOException::class)
override fun intercept(chain: Chain): Response { override fun intercept(chain: Chain): Response {
@ -48,7 +49,6 @@ private class UnzippingInterceptor : Interceptor {
return unzip(response) return unzip(response)
} }
// ref: https://stackoverflow.com/questions/51901333/okhttp-3-how-to-decompress-gzip-deflate-response-manually-using-java-android
@Throws(IOException::class) @Throws(IOException::class)
private fun unzip(response: Response): Response { private fun unzip(response: Response): Response {
if (response.body == null) { if (response.body == null) {