Skip to content

Commit

Permalink
style: rubocop
Browse files Browse the repository at this point in the history
  • Loading branch information
bethesque committed Aug 30, 2023
1 parent b7550e5 commit 5d50393
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/pact_broker/matrix/repository.rb
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,8 @@ def apply_latestby(options, lines)
lines
.group_by{ |line| group_by_columns.collect{ |key| line.send(key) } }
.values
.collect { | lines |
lines.first.provider_version_number.nil? ? lines.first : lines.sort_by(&:provider_version_order).last
.collect { | grouped_lines |
grouped_lines.first.provider_version_number.nil? ? grouped_lines.first : grouped_lines.sort_by(&:provider_version_order).last
}
.flatten
end
Expand Down

0 comments on commit 5d50393

Please sign in to comment.