Fix lint error (#8000)

This commit is contained in:
AntsyLich 2022-09-12 21:59:15 +06:00 committed by GitHub
parent c51e83c048
commit 9e5d79aec3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -17,8 +17,11 @@ class GetExtensionLanguages(
) { enabledLanguage, availableExtensions -> ) { enabledLanguage, availableExtensions ->
availableExtensions availableExtensions
.flatMap { ext -> .flatMap { ext ->
if (ext.sources.isEmpty()) listOf(ext.lang) if (ext.sources.isEmpty()) {
else ext.sources.map { it.lang } listOf(ext.lang)
} else {
ext.sources.map { it.lang }
}
} }
.distinct() .distinct()
.sortedWith( .sortedWith(