From 21444b45e77c417e9a48e075e313261f193a020e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=ABl?= Date: Fri, 31 Jul 2026 18:00:04 +0200 Subject: [PATCH] test(healthchat): satisfy konsist presenter helper rule Konsist requires createPresenter helpers to omit the return type. --- .../HealthChatProfileSectionPresenterTest.kt | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/features/healthchat/impl/src/test/kotlin/io/element/android/features/healthchat/impl/profile/section/HealthChatProfileSectionPresenterTest.kt b/features/healthchat/impl/src/test/kotlin/io/element/android/features/healthchat/impl/profile/section/HealthChatProfileSectionPresenterTest.kt index 0fca5457d5..18106eae29 100644 --- a/features/healthchat/impl/src/test/kotlin/io/element/android/features/healthchat/impl/profile/section/HealthChatProfileSectionPresenterTest.kt +++ b/features/healthchat/impl/src/test/kotlin/io/element/android/features/healthchat/impl/profile/section/HealthChatProfileSectionPresenterTest.kt @@ -118,12 +118,10 @@ class HealthChatProfileSectionPresenterTest { userId: UserId = A_USER_ID, directoryService: HealthChatDirectoryService = FakeHealthChatDirectoryService(), profileRepository: HealthChatProfileRepository = FakeHealthChatProfileRepository(), - ): HealthChatProfileSectionPresenter { - return HealthChatProfileSectionPresenter( - userId = userId, - isCurrentUser = isCurrentUser, - directoryService = directoryService, - profileRepository = profileRepository, - ) - } + ) = HealthChatProfileSectionPresenter( + userId = userId, + isCurrentUser = isCurrentUser, + directoryService = directoryService, + profileRepository = profileRepository, + ) }