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 ->
availableExtensions
.flatMap { ext ->
if (ext.sources.isEmpty()) listOf(ext.lang)
else ext.sources.map { it.lang }
if (ext.sources.isEmpty()) {
listOf(ext.lang)
} else {
ext.sources.map { it.lang }
}
}
.distinct()
.sortedWith(