Ktlint: do code format

This commit is contained in:
小白-白 authored and tarsin committed 2023-03-31 22:37:36 +08:00
1 parent 04c99a5a36
commit 661bf3ecc2
159 files changed
+1631 -1273

No files matched your search

@@ -52,7 +52,7 @@ class Cookie(
var hostOnly: Boolean,
@PrimaryKey
@ColumnInfo(name = "_id")
var id: Long?
var id: Long?,
)
@Dao
@@ -77,9 +77,9 @@ interface CookiesDao {
autoMigrations = [
AutoMigration(
from = 1,
to = 2
)
]
to = 2,
),
],
)
abstract class CookiesDatabase : RoomDatabase() {
abstract fun cookiesDao(): CookiesDao
@@ -150,6 +150,6 @@ fun Cookie.toOkHttp3Cookie(): OkHttpCookie {
private fun OkHttpCookie.toCookie(id: Long? = null): Cookie {
return Cookie(
name, value, expiresAt, domain, path, secure, httpOnly, persistent, hostOnly, id
name, value, expiresAt, domain, path, secure, httpOnly, persistent, hostOnly, id,
)
}
@@ -61,8 +61,8 @@ internal class CookieSet {
internal data class Key(
val name: String,
val domain: String,
val path: String
val path: String,
) {
constructor(cookie: Cookie) : this(cookie.name, cookie.domain, cookie.path)
}
}
}
@@ -56,4 +56,4 @@ object InetValidator {
fun isValidInetPort(inetPort: Int): Boolean {
return inetPort in 0..65535
}
}
}
@@ -41,4 +41,4 @@ class UrlBuilder(private var mRootUrl: String) {
sb.toString()
}
}
}
}