Skip to content

Commit

Permalink
[ifmeorg#1713] removed unnecessary variables
Browse files Browse the repository at this point in the history
  • Loading branch information
S-Warmenhoven committed Apr 9, 2020
1 parent 391ca8a commit 8f86346
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions app/services/resource_recommendation.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,19 +28,16 @@ def resources
matched_resources = []
moment_keywords = []
@moment.categories.each do |category|
category_description = html_clean(category['description'])
moment_keywords.push(category['name'].split)
moment_keywords.push(category_description.split)
moment_keywords.push(html_clean(category['description']).split)
end
@moment.moods.each do |mood|
mood_description = html_clean(mood['description'])
moment_keywords.push(mood['name'].split)
moment_keywords.push(mood_description.split)
moment_keywords.push(html_clean(mood['description']).split)
end
@moment.strategies.each do |strategy|
strategy_description = html_clean(strategy['description'])
moment_keywords.push(strategy['name'].split)
moment_keywords.push(strategy_description.split)
moment_keywords.push(html_clean(strategy['description']).split)
end

moment_keywords.push(moment_name, moment_why, moment_fix)
Expand Down

0 comments on commit 8f86346

Please sign in to comment.