Remove usage of .not() where possible

This commit is contained in:
AntsyLich
2024-01-21 18:56:17 +06:00
parent a024218410
commit 39407407f2
14 changed files with 20 additions and 20 deletions
@@ -29,7 +29,7 @@ fun Track.toDbTrack(): DbTrack = DbTrack.create(trackerId).also {
}
fun DbTrack.toDomainTrack(idRequired: Boolean = true): Track? {
val trackId = id ?: if (idRequired.not()) -1 else return null
val trackId = id ?: if (!idRequired) -1 else return null
return Track(
id = trackId,
mangaId = manga_id,