From e98f8a576f07f29a3324d30ca01a3cba04499ba4 Mon Sep 17 00:00:00 2001 From: Marco Gomiero Date: Sun, 10 Sep 2023 21:41:23 +0200 Subject: [PATCH] Fix detekt --- .../domain/feed/retriever/FeedRetrieverRepositoryImpl.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/shared/src/commonMain/kotlin/com/prof18/feedflow/domain/feed/retriever/FeedRetrieverRepositoryImpl.kt b/shared/src/commonMain/kotlin/com/prof18/feedflow/domain/feed/retriever/FeedRetrieverRepositoryImpl.kt index 17027679..dacd97be 100644 --- a/shared/src/commonMain/kotlin/com/prof18/feedflow/domain/feed/retriever/FeedRetrieverRepositoryImpl.kt +++ b/shared/src/commonMain/kotlin/com/prof18/feedflow/domain/feed/retriever/FeedRetrieverRepositoryImpl.kt @@ -188,9 +188,9 @@ internal class FeedRetrieverRepositoryImpl( .plus( oldItems.filterNot { item -> items.any { it.id == item.id } - } + }, ) - .filter { !it.isRead } + .filterNot { it.isRead } .distinctBy { it.id } .sortedByDescending { it.pubDateMillis } .toList()