mirror of
https://gitlab.com/mangadex-pub/mangadex_at_home.git
synced 2024-01-19 02:48:37 +00:00
Simplify code
This commit is contained in:
parent
33fea67a44
commit
13b80cf02f
|
@ -4,7 +4,7 @@ plugins {
|
|||
id "application"
|
||||
id "com.github.johnrengelman.shadow" version "5.2.0"
|
||||
id "com.diffplug.gradle.spotless" version "4.4.0"
|
||||
id "dev.afanasev.sekret" version "0.0.3"
|
||||
id "dev.afanasev.sekret" version "0.0.7"
|
||||
}
|
||||
|
||||
group = "com.mangadex"
|
||||
|
|
|
@ -27,7 +27,7 @@ data class ServerSettings(
|
|||
val imageServer: String,
|
||||
val latestBuild: Int,
|
||||
val url: String,
|
||||
val tokenKey: ByteArray,
|
||||
@field:Secret val tokenKey: ByteArray,
|
||||
val compromised: Boolean,
|
||||
val paused: Boolean,
|
||||
val forceTokens: Boolean = false,
|
||||
|
@ -60,10 +60,6 @@ data class ServerSettings(
|
|||
result = 31 * result + (tls?.hashCode() ?: 0)
|
||||
return result
|
||||
}
|
||||
|
||||
override fun toString(): String {
|
||||
return "ServerSettings(imageServer='$imageServer', latestBuild=$latestBuild, url='$url', tokenKey=$tokenKey, compromised=$compromised, paused=$paused, forceTokens=$forceTokens, tls=$tls)"
|
||||
}
|
||||
}
|
||||
|
||||
@JsonNaming(PropertyNamingStrategy.SnakeCaseStrategy::class)
|
||||
|
|
Loading…
Reference in a new issue