Skip to content

Commit

Permalink
style: ktlint 적용
Browse files Browse the repository at this point in the history
  • Loading branch information
ki960213 committed Aug 4, 2023
1 parent 3a43045 commit e8d092a
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ interface CommentRepository {
suspend fun updateComment(commentId: Long, content: String): ApiResult<Unit>

suspend fun deleteComment(commentId: Long): ApiResult<Unit>
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,4 @@ class CommentRepositoryImpl(
override suspend fun deleteComment(commentId: Long): ApiResult<Unit> = withContext(dispatcher) {
handleApi(commentService.deleteComment(commentId)) {}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,4 @@ interface CommentService {

@DELETE("comments/{commentId}")
suspend fun deleteComment(@Path("commentId") commentId: Long): Response<Unit>
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@ data class CommentApiModel(
val memberName: String,
@SerialName("deleted")
val deleted: Boolean
)
)
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,4 @@ fun CommentApiModel.toData() = Comment(
listOf()
)

private val dateTimeFormatter = DateTimeFormatter.ofPattern("yyyy:MM:dd:HH:mm:ss")
private val dateTimeFormatter = DateTimeFormatter.ofPattern("yyyy:MM:dd:HH:mm:ss")
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package com.emmsale.presentation.ui.childComments.adapter

import android.view.ViewGroup
import androidx.recyclerview.widget.ListAdapter
import androidx.recyclerview.widget.DiffUtil
import androidx.recyclerview.widget.ListAdapter
import com.emmsale.presentation.ui.childComments.uiState.CommentUiState

class ChildCommentsAdapter(
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
package com.emmsale.data.comment

import com.emmsale.data.comment.dto.CommentFamilyApiModel
import com.emmsale.data.comment.dto.CommentApiModel
import com.emmsale.data.comment.dto.CommentFamilyApiModel
import com.emmsale.data.comment.dto.SaveCommentRequestBody
import com.emmsale.data.comment.dto.UpdateCommentRequestBody
import com.jakewharton.retrofit2.converter.kotlinx.serialization.asConverterFactory
import kotlinx.coroutines.test.runTest
import kotlinx.serialization.json.Json
import okhttp3.HttpUrl
import okhttp3.MediaType.Companion.toMediaType
import okhttp3.OkHttpClient
Expand All @@ -15,9 +18,6 @@ import org.junit.jupiter.api.DisplayName
import org.junit.jupiter.api.Test
import org.junit.jupiter.api.assertAll
import retrofit2.Retrofit
import kotlinx.coroutines.test.runTest
import kotlinx.serialization.json.Json
import com.jakewharton.retrofit2.converter.kotlinx.serialization.asConverterFactory


internal class CommentServiceTest {
Expand Down

0 comments on commit e8d092a

Please sign in to comment.