From e4d792e69eb78c83c0debcb71b760878bdeec1fb Mon Sep 17 00:00:00 2001 From: chws0508 Date: Fri, 28 Jul 2023 14:56:27 +0900 Subject: [PATCH] =?UTF-8?q?refactor=20:=20ktlint=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/java/com/emmsale/data/event/EventRepository.kt | 4 +--- .../main/java/com/emmsale/data/event/EventRepositoryImpl.kt | 3 +-- .../main/java/com/emmsale/data/member/MemberRepositoryImpl.kt | 1 - .../presentation/service/KerdyFirebaseMessagingService.kt | 2 -- 4 files changed, 2 insertions(+), 8 deletions(-) diff --git a/android/2023-emmsale/app/src/main/java/com/emmsale/data/event/EventRepository.kt b/android/2023-emmsale/app/src/main/java/com/emmsale/data/event/EventRepository.kt index dbbcbbf38..ec4254c92 100644 --- a/android/2023-emmsale/app/src/main/java/com/emmsale/data/event/EventRepository.kt +++ b/android/2023-emmsale/app/src/main/java/com/emmsale/data/event/EventRepository.kt @@ -1,12 +1,10 @@ package com.emmsale.data.event -import com.emmsale.data.common.ApiResult - interface EventRepository { suspend fun getEvents( year: Int, month: Int, status: String, tags: List, - ): ApiResult> + ) } diff --git a/android/2023-emmsale/app/src/main/java/com/emmsale/data/event/EventRepositoryImpl.kt b/android/2023-emmsale/app/src/main/java/com/emmsale/data/event/EventRepositoryImpl.kt index 7e0cd8837..474fd5df2 100644 --- a/android/2023-emmsale/app/src/main/java/com/emmsale/data/event/EventRepositoryImpl.kt +++ b/android/2023-emmsale/app/src/main/java/com/emmsale/data/event/EventRepositoryImpl.kt @@ -1,6 +1,5 @@ package com.emmsale.data.event -import com.emmsale.data.common.ApiResult import com.emmsale.data.common.handleApi import com.emmsale.data.event.dto.EventApiModel import com.emmsale.data.event.dto.toData @@ -17,7 +16,7 @@ class EventRepositoryImpl( month: Int, status: String, tags: List, - ): ApiResult> = withContext(dispatcher) { + ): Unit = withContext(dispatcher) { handleApi(eventService.getEvents(year, month, status, tags), List::toData) } } diff --git a/android/2023-emmsale/app/src/main/java/com/emmsale/data/member/MemberRepositoryImpl.kt b/android/2023-emmsale/app/src/main/java/com/emmsale/data/member/MemberRepositoryImpl.kt index cbccc677a..abb3a6582 100644 --- a/android/2023-emmsale/app/src/main/java/com/emmsale/data/member/MemberRepositoryImpl.kt +++ b/android/2023-emmsale/app/src/main/java/com/emmsale/data/member/MemberRepositoryImpl.kt @@ -15,4 +15,3 @@ class MemberRepositoryImpl( handleApi(memberService.updateMember(MemberApiModel.from(member))) { } } } - diff --git a/android/2023-emmsale/app/src/main/java/com/emmsale/presentation/service/KerdyFirebaseMessagingService.kt b/android/2023-emmsale/app/src/main/java/com/emmsale/presentation/service/KerdyFirebaseMessagingService.kt index 809b4bb99..7debc96a5 100644 --- a/android/2023-emmsale/app/src/main/java/com/emmsale/presentation/service/KerdyFirebaseMessagingService.kt +++ b/android/2023-emmsale/app/src/main/java/com/emmsale/presentation/service/KerdyFirebaseMessagingService.kt @@ -33,5 +33,3 @@ class KerdyFirebaseMessagingService : FirebaseMessagingService() { private const val FOLLOW_CHANNEL_ID = "follow_channel_id" } } - -