diff --git a/sms-core/src/main/kotlin/team/msg/sms/domain/user/usecase/QueryCurrentUserProfileDetailUseCase.kt b/sms-core/src/main/kotlin/team/msg/sms/domain/user/usecase/QueryCurrentUserProfileDetailUseCase.kt index fdfe0978..2f67b377 100644 --- a/sms-core/src/main/kotlin/team/msg/sms/domain/user/usecase/QueryCurrentUserProfileDetailUseCase.kt +++ b/sms-core/src/main/kotlin/team/msg/sms/domain/user/usecase/QueryCurrentUserProfileDetailUseCase.kt @@ -115,9 +115,6 @@ class QueryCurrentUserProfileDetailUseCase( techStacks.find { it.id == studentTechStack.techStackId } private fun getStudentPortfolioUrl(student: Student.StudentWithUserInfo): String { - return when { - !student.portfolioUrl.isNullOrBlank() -> student.portfolioUrl - else -> "" - } + return if(!student.portfolioUrl.isNullOrBlank()) student.portfolioUrl else "" } } \ No newline at end of file