mirror of
https://github.com/null2264/yokai.git
synced 2025-06-21 10:44:42 +00:00
refactor(library): Simplify library item hashcode
This commit is contained in:
parent
7e1ce69d7f
commit
8827e4433c
1 changed files with 1 additions and 3 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue