Skip to content

Commit

Permalink
chore: maybe fix a bug
Browse files Browse the repository at this point in the history
  • Loading branch information
bethesque committed Apr 12, 2022
1 parent 3a08d12 commit 91452db
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/pact_broker/pacts/eager_loaders.rb
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,10 @@ def self.populate_associations_for_consumer_and_provider(_key, pact_publications

pact_publications.each do | pact_publication |
pact_publication.consumer_version_tags.collect(&:name).sort.each do | tag_name |
pact_publication.associations[:head_pact_publications_for_tags] << head_pact_publications_by_tag[tag_name]
# Not sure how this can ever be nil, but a PF error suggests that it has happend. Maybe a timing issue?
if head_pact_publications_by_tag[tag_name]
pact_publication.associations[:head_pact_publications_for_tags] << head_pact_publications_by_tag[tag_name]
end
end
end
end
Expand Down

0 comments on commit 91452db

Please sign in to comment.