Skip to content

Commit

Permalink
♻️ :: 중복되는 부분 분리
Browse files Browse the repository at this point in the history
  • Loading branch information
jeongho1209 committed Jan 7, 2024
1 parent 654bd95 commit 47c46a9
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,9 @@ data class User(
val num: Int,
val birthDay: LocalDate,
val profileFileName: String?,
)
) {
companion object {
fun User.processGcn() = "${this.grade}${this.classNum}${this.paddedUserNum()}"
private fun User.paddedUserNum(): String = this.num.toString().padStart(2, '0')

Check failure on line 19 in pick-application/src/main/kotlin/com/pickdsm/pickserverspring/domain/user/User.kt

View workflow job for this annotation

GitHub Actions / ktlint

[ktlint] pick-application/src/main/kotlin/com/pickdsm/pickserverspring/domain/user/User.kt#L19 <standard:blank-line-before-declaration>

Expected a blank line for this declaration
Raw output
pick-application/src/main/kotlin/com/pickdsm/pickserverspring/domain/user/User.kt:19:9: error: Expected a blank line for this declaration (standard:blank-line-before-declaration)
}
}

0 comments on commit 47c46a9

Please sign in to comment.