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

View File

@@ -20,7 +20,7 @@ class GetApplicationRelease(
val now = Instant.now()
// Limit checks to once every 3 days at most
if (arguments.forceCheck.not() && now.isBefore(
if (!arguments.forceCheck && now.isBefore(
Instant.ofEpochMilli(lastChecked.get()).plus(3, ChronoUnit.DAYS),
)
) {

View File

@@ -22,7 +22,7 @@ class StubSource(
throw SourceNotInstalledException()
override fun toString(): String =
if (isInvalid.not()) "$name (${lang.uppercase()})" else id.toString()
if (!isInvalid) "$name (${lang.uppercase()})" else id.toString()
companion object {
fun from(source: Source): StubSource {