Skip to content

Commit

Permalink
Style: (#6)ktlint 적용
Browse files Browse the repository at this point in the history
  • Loading branch information
alsdl0629 committed Oct 2, 2023
1 parent 79d15e1 commit bed2d72
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ package team.sfe.server.global.error

abstract class CustomException(
val status: Int,
override val message: String
override val message: String,
) : RuntimeException()
4 changes: 2 additions & 2 deletions src/main/kotlin/team/sfe/server/global/error/ErrorResponse.kt
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import team.sfe.server.global.exception.MethodNotAllowedException
data class ErrorResponse(
val status: Int,
val message: String,
val fieldErrors: List<FieldError>
val fieldErrors: List<FieldError>,
) {

companion object {
Expand Down Expand Up @@ -82,7 +82,7 @@ data class ErrorResponse(
data class FieldError(
val field: String,
val value: String,
val reason: String
val reason: String,
) {

companion object {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import org.springframework.security.config.annotation.web.builders.HttpSecurity
import org.springframework.security.web.DefaultSecurityFilterChain

class FilterConfig(
private val objectMapper: ObjectMapper
private val objectMapper: ObjectMapper,
) : SecurityConfigurerAdapter<DefaultSecurityFilterChain, HttpSecurity>() {

override fun configure(builder: HttpSecurity?) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import team.sfe.server.global.error.ErrorResponse
import java.nio.charset.StandardCharsets

class GlobalExceptionFilter(
private val objectMapper: ObjectMapper
private val objectMapper: ObjectMapper,
) : OncePerRequestFilter() {

override fun doFilterInternal(
Expand Down

0 comments on commit bed2d72

Please sign in to comment.