Remove usage of .not() where possible

(cherry picked from commit 39407407f282dbb7fa972b12053c26b3e3bd66d8)
This commit is contained in:
AntsyLich 2024-01-21 18:56:17 +06:00 committed by Cuong M. Tran
parent 6e7540e763
commit f301ab36f9
No known key found for this signature in database
GPG key ID: 733AA7624B9315C2

View file

@ -24,8 +24,9 @@ class GetExtensionsByType(
val (updates, installed) = _installed
.filter { (showNsfwSources || !it.isNsfw) }
.sortedWith(
compareBy<Extension.Installed> { !it.isObsolete /* SY --> */ && !it.isRedundant /* SY <-- */
}.thenBy(String.CASE_INSENSITIVE_ORDER) { it.name },
compareBy<Extension.Installed> {
!it.isObsolete /* SY --> */ && !it.isRedundant /* SY <-- */
}.thenBy(String.CASE_INSENSITIVE_ORDER) { it.name },
)
.partition { it.hasUpdate }