refactor(library): Simplify library item hashcode

This commit is contained in:
Ahmad Ansori Palembani 2024-08-17 19:38:05 +07:00
parent 7e1ce69d7f
commit 8827e4433c
Signed by: null2264
GPG key ID: BA64F8B60AF3EFB6

View file

@ -200,9 +200,7 @@ class LibraryItem(
}
override fun hashCode(): Int {
var result = manga.id!!.hashCode()
result = 31 * result + (header?.hashCode() ?: 0)
return result
return 31 * manga.id!!.hashCode() + header!!.hashCode()
}
companion object {