Skip to content

Commit

Permalink
style: lint적용
Browse files Browse the repository at this point in the history
  • Loading branch information
Namyunsuk committed Jul 30, 2024
1 parent fbaba7c commit 3782083
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -102,10 +102,9 @@ class OfferingDetailViewModel(
): T {
return OfferingDetailViewModel(
articleId,
offeringDetailRepository
offeringDetailRepository,
) as T
}
}
}
}

Original file line number Diff line number Diff line change
Expand Up @@ -28,17 +28,16 @@ class OfferingViewModel(
private const val PAGE_SIZE = 10

@Suppress("UNCHECKED_CAST")
fun getFactory(
offeringsRepository: OfferingsRepository,
) = object : ViewModelProvider.Factory {
override fun <T : ViewModel> create(
modelClass: Class<T>,
extras: CreationExtras,
): T {
return OfferingViewModel(
offeringsRepository
) as T
fun getFactory(offeringsRepository: OfferingsRepository) =
object : ViewModelProvider.Factory {
override fun <T : ViewModel> create(
modelClass: Class<T>,
extras: CreationExtras,
): T {
return OfferingViewModel(
offeringsRepository,
) as T
}
}
}
}
}

0 comments on commit 3782083

Please sign in to comment.