mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-31 23:03:54 +01:00
TestConnectionFactory.kt: fixed property naming to adhere to ktLint standard
This commit is contained in:
parent
9dce6831b6
commit
0ccfba5db7
1 changed files with 3 additions and 3 deletions
|
|
@ -21,14 +21,14 @@ private class TestStubInterceptor : Interceptor {
|
||||||
|
|
||||||
@Throws(IOException::class)
|
@Throws(IOException::class)
|
||||||
override fun intercept(chain: Interceptor.Chain): Response =
|
override fun intercept(chain: Interceptor.Chain): Response =
|
||||||
if (CALLBACK != null) {
|
if (callback != null) {
|
||||||
CALLBACK!!.getResponse(chain)
|
callback!!.getResponse(chain)
|
||||||
} else {
|
} else {
|
||||||
chain.proceed(chain.request())
|
chain.proceed(chain.request())
|
||||||
}
|
}
|
||||||
|
|
||||||
companion object {
|
companion object {
|
||||||
var CALLBACK: Callback? = null
|
var callback: Callback? = null
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue