Skip to content

Commit

Permalink
#97 fix: ReportCategory 찾아오는 함수 non-null 설정
Browse files Browse the repository at this point in the history
  • Loading branch information
sojungpp committed Aug 10, 2023
1 parent 0ba42c4 commit 62fce5a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ enum class ReportCategory(override val value: String) : EnumType {
}

fun findByValue(value: String): ReportCategory {
return ReportCategory.values().find { it.value == value }
return ReportCategory.values().find { it.value == value }!!
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ class ProductService(
private val userInterestRepository: UserInterestRepository,
private val productImgRepository: ProductImgRepository,
private val productLikeRepository: ProductLikeRepository,
private val productReportRepository: ProductReportRepository,
private val userRepository: UserRepository,
private val productAssembler: ProductAssembler
) {
Expand Down

0 comments on commit 62fce5a

Please sign in to comment.