Skip to content

Commit

Permalink
♻️ :: let함수로 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
alsco39 committed Jan 13, 2024
1 parent aeed345 commit 864edce
Showing 1 changed file with 2 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -275,19 +275,12 @@ class AdminUseCase(
override fun saveOrUpdateType(date: LocalDate, type: DirectorType) {

Check failure on line 275 in pick-application/src/main/kotlin/com/pickdsm/pickserverspring/domain/admin/usecase/AdminUseCase.kt

View workflow job for this annotation

GitHub Actions / ktlint

[ktlint] pick-application/src/main/kotlin/com/pickdsm/pickserverspring/domain/admin/usecase/AdminUseCase.kt#L275 <standard:function-signature>

Newline expected after opening parenthesis
Raw output
pick-application/src/main/kotlin/com/pickdsm/pickserverspring/domain/admin/usecase/AdminUseCase.kt:275:35: error: Newline expected after opening parenthesis (standard:function-signature)

Check failure on line 275 in pick-application/src/main/kotlin/com/pickdsm/pickserverspring/domain/admin/usecase/AdminUseCase.kt

View workflow job for this annotation

GitHub Actions / ktlint

[ktlint] pick-application/src/main/kotlin/com/pickdsm/pickserverspring/domain/admin/usecase/AdminUseCase.kt#L275 <standard:function-signature>

Parameter should start on a newline
Raw output
pick-application/src/main/kotlin/com/pickdsm/pickserverspring/domain/admin/usecase/AdminUseCase.kt:275:52: error: Parameter should start on a newline (standard:function-signature)

Check failure on line 275 in pick-application/src/main/kotlin/com/pickdsm/pickserverspring/domain/admin/usecase/AdminUseCase.kt

View workflow job for this annotation

GitHub Actions / ktlint

[ktlint] pick-application/src/main/kotlin/com/pickdsm/pickserverspring/domain/admin/usecase/AdminUseCase.kt#L275 <standard:function-signature>

Newline expected before closing parenthesis
Raw output
pick-application/src/main/kotlin/com/pickdsm/pickserverspring/domain/admin/usecase/AdminUseCase.kt:275:70: error: Newline expected before closing parenthesis (standard:function-signature)
val existType = queryTypeSpi.queryTypeByDate(date)

if (existType == null) {
commandTypeSpi.saveType(
existType?.let { commandTypeSpi.saveType(it.changeType(type)) }
?: commandTypeSpi.saveType(
Type(
date = date,
type = type,
),
)
} else {
commandTypeSpi.saveType(
existType.changeType(
type = type,
)
)
}
}
}

0 comments on commit 864edce

Please sign in to comment.