mirror of
https://github.com/bitwarden/android.git
synced 2026-03-12 05:04:17 -05:00
Simplify url check in BaseUrlInterceptor (#4354)
This commit is contained in:
@@ -13,8 +13,7 @@ class BaseUrlInterceptor(
|
||||
private val baseUrlProvider: () -> String?,
|
||||
) : Interceptor {
|
||||
|
||||
private val baseHttpUrl: HttpUrl?
|
||||
get() = baseUrlProvider()?.let { requireNotNull(it.toHttpUrlOrNull()) }
|
||||
private val baseHttpUrl: HttpUrl? get() = baseUrlProvider()?.toHttpUrlOrNull()
|
||||
|
||||
override fun intercept(chain: Interceptor.Chain): Response {
|
||||
val request = chain.request()
|
||||
|
||||
Reference in New Issue
Block a user