Whoops spotlessed again

This commit is contained in:
Jack Hamilton
2024-10-12 16:34:40 -05:00
parent c3adf103d7
commit dae7a00b41
2 changed files with 3 additions and 4 deletions

View File

@ -308,9 +308,9 @@ class LibraryScreenModel(
}
return mapValues { (key, value) ->
if (key.sort.type == LibrarySort.Type.Random) {
return@mapValues value.shuffled(Random(libraryPreferences.randomSortSeed().get()))
}
if (key.sort.type == LibrarySort.Type.Random) {
return@mapValues value.shuffled(Random(libraryPreferences.randomSortSeed().get()))
}
val comparator = key.sort.comparator()
.let { if (key.sort.isAscending) it else it.reversed() }