Skip to content

Commit 9ca0e77

Browse files
authored
Merge pull request #407 from GSM-MSG/hotfix/406-exclude-portfolio-file-url
🔁 포트폴리오 URL이 비어있는 상황에서는 무조건 빈 문자열을 반환함
2 parents 4e0309e + fe0d566 commit 9ca0e77

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

sms-core/src/main/kotlin/team/msg/sms/domain/user/usecase/QueryCurrentUserProfileDetailUseCase.kt

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -115,10 +115,6 @@ class QueryCurrentUserProfileDetailUseCase(
115115
techStacks.find { it.id == studentTechStack.techStackId }
116116

117117
private fun getStudentPortfolioUrl(student: Student.StudentWithUserInfo): String {
118-
return when {
119-
!student.portfolioUrl.isNullOrBlank() -> student.portfolioUrl
120-
!student.portfolioFileUrl.isNullOrBlank() -> student.portfolioFileUrl
121-
else -> ""
122-
}
118+
return if(!student.portfolioUrl.isNullOrBlank()) student.portfolioUrl else ""
123119
}
124120
}

0 commit comments

Comments
 (0)