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 d1fd122f..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,10 +115,6 @@ class QueryCurrentUserProfileDetailUseCase( techStacks.find { it.id == studentTechStack.techStackId } private fun getStudentPortfolioUrl(student: Student.StudentWithUserInfo): String { - return when { - !student.portfolioUrl.isNullOrBlank() -> student.portfolioUrl - !student.portfolioFileUrl.isNullOrBlank() -> student.portfolioFileUrl - else -> "" - } + return if(!student.portfolioUrl.isNullOrBlank()) student.portfolioUrl else "" } } \ No newline at end of file