Code cleanup

This commit is contained in:
Koitharu
2023-07-20 14:09:07 +03:00
parent 82a3b93214
commit 513aa1a285
20 changed files with 109 additions and 140 deletions

View File

@@ -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
}
}
}

View File

@@ -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
}
}
}