Code cleanup
This commit is contained in:
@@ -21,9 +21,7 @@ class MangaTracking(
|
||||
|
||||
if (manga != other.manga) return false
|
||||
if (lastChapterId != other.lastChapterId) return false
|
||||
if (lastCheck != other.lastCheck) return false
|
||||
|
||||
return true
|
||||
return lastCheck == other.lastCheck
|
||||
}
|
||||
|
||||
override fun hashCode(): Int {
|
||||
@@ -32,4 +30,4 @@ class MangaTracking(
|
||||
result = 31 * result + (lastCheck?.hashCode() ?: 0)
|
||||
return result
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -18,9 +18,7 @@ class TrackingItem(
|
||||
other as TrackingItem
|
||||
|
||||
if (tracking != other.tracking) return false
|
||||
if (channelId != other.channelId) return false
|
||||
|
||||
return true
|
||||
return channelId == other.channelId
|
||||
}
|
||||
|
||||
override fun hashCode(): Int {
|
||||
@@ -28,4 +26,4 @@ class TrackingItem(
|
||||
result = 31 * result + channelId.hashCode()
|
||||
return result
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user