Update to Kotlin 1.4.21 and kotlinter 3.3.0

This commit is contained in:
arkon
2020-12-08 22:31:48 -05:00
parent 2bb7a33bc3
commit 59859e124f
5 changed files with 8 additions and 3 deletions
@@ -132,7 +132,8 @@ class MyAnimeList(private val context: Context, id: Int) : TrackService(id) {
private fun checkCookies(): Boolean {
val url = BASE_URL.toHttpUrlOrNull()!!
val ckCount = networkService.cookieManager.get(url).count {
it.name == USER_SESSION_COOKIE || it.name == LOGGED_IN_COOKIE }
it.name == USER_SESSION_COOKIE || it.name == LOGGED_IN_COOKIE
}
return ckCount == 2
}