style: fix lint

This commit is contained in:
usbharu 2024-09-13 16:33:17 +09:00
parent 67208e5899
commit e43e1575cf
Signed by: usbharu
GPG Key ID: 6556747BF94EEBC8
4 changed files with 4 additions and 12 deletions

View File

@ -154,9 +154,7 @@ class Actor(
return id == other.id
}
override fun hashCode(): Int {
return id.hashCode()
}
override fun hashCode(): Int = id.hashCode()
override fun toString(): String {
return "Actor(" +

View File

@ -28,9 +28,7 @@ class ActorDescription(description: String) {
return description == other.description
}
override fun hashCode(): Int {
return description.hashCode()
}
override fun hashCode(): Int = description.hashCode()
companion object {
const val LENGTH = 10000

View File

@ -29,9 +29,7 @@ class ActorScreenName(screenName: String) {
return screenName == other.screenName
}
override fun hashCode(): Int {
return screenName.hashCode()
}
override fun hashCode(): Int = screenName.hashCode()
companion object {
const val LENGTH = 300

View File

@ -35,9 +35,7 @@ class Timeline(
return id == other.id
}
override fun hashCode(): Int {
return id.hashCode()
}
override fun hashCode(): Int = id.hashCode()
companion object {
fun create(