Skip to content

Commit

Permalink
return empty aray instead of nil
Browse files Browse the repository at this point in the history
  • Loading branch information
kcinay055679 committed Aug 19, 2024
1 parent f8b3e66 commit 177d060
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/domain/people_search.rb
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def association_symbols
# rubocop:disable Metrics/MethodLength
def in_association(person, sym)
target = person.association(sym).target
return if target.nil?
return [] if target.nil?

if sym == :skills
target.filter! do |skill|
Expand Down

0 comments on commit 177d060

Please sign in to comment.