From 25b64bd6dd0178d28285e1b27b0f086e686634b5 Mon Sep 17 00:00:00 2001 From: Tobias Jungmann Date: Mon, 18 Sep 2023 21:18:13 +0200 Subject: [PATCH] fixed linting newlines --- .../in/tumcampusapp/component/ui/news/model/NewsSources.kt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/de/tum/in/tumcampusapp/component/ui/news/model/NewsSources.kt b/app/src/main/java/de/tum/in/tumcampusapp/component/ui/news/model/NewsSources.kt index 23f6dbe21..0bf4bca24 100644 --- a/app/src/main/java/de/tum/in/tumcampusapp/component/ui/news/model/NewsSources.kt +++ b/app/src/main/java/de/tum/in/tumcampusapp/component/ui/news/model/NewsSources.kt @@ -30,11 +30,13 @@ data class NewsSources( companion object { fun fromProto(it: NewsSourceReply): List { - return it.sourcesList.map { NewsSources( + return it.sourcesList.map { + NewsSources( id = it.source.toInt(), title = it.title, icon = it.icon - ) } + ) + } } } }