From 9e5d79aec3c58791f4befaa3bf93c2dec2a70d32 Mon Sep 17 00:00:00 2001 From: AntsyLich <59261191+AntsyLich@users.noreply.github.com> Date: Mon, 12 Sep 2022 21:59:15 +0600 Subject: [PATCH] Fix lint error (#8000) --- .../domain/extension/interactor/GetExtensionLanguages.kt | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/eu/kanade/domain/extension/interactor/GetExtensionLanguages.kt b/app/src/main/java/eu/kanade/domain/extension/interactor/GetExtensionLanguages.kt index d89b13bfe2..f906d4e3e9 100644 --- a/app/src/main/java/eu/kanade/domain/extension/interactor/GetExtensionLanguages.kt +++ b/app/src/main/java/eu/kanade/domain/extension/interactor/GetExtensionLanguages.kt @@ -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(