Skip to content

Commit

Permalink
Fix: RecipeFetchMapper static 제거
Browse files Browse the repository at this point in the history
  • Loading branch information
GeonH0 committed Jun 20, 2024
1 parent cdc8dfa commit ef2b533
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@
import Foundation

struct RecipeFetchMapper {
static func mapToRecipeListItemViewModels(from recipes: [Recipe]) -> [RecipeListItemViewModel] {
func mapToRecipeListItemViewModels(from recipes: [Recipe]) -> [RecipeListItemViewModel] {
return recipes.map { RecipeListItemViewModel(recipe: $0) }
}

func mapToRecipeItemViewModel(from recipe: Recipe) -> RecipeItemViewModel {
return RecipeItemViewModel(recipe: recipe)
}
Expand Down

0 comments on commit ef2b533

Please sign in to comment.