Skip to content

Commit

Permalink
Improve legibility on change from last commit
Browse files Browse the repository at this point in the history
  • Loading branch information
nomadium committed Apr 14, 2024
1 parent 76ea067 commit be9e702
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/linzer/common.rb
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@ def validate_uniqueness(components)
.partition { |c| c.start_with?("@") }
.flat_map
.with_index do |group, idx|
group.map do |comp|
Starry.parse_item(idx.zero? ? comp[1..] : comp)
end.uniq { |comp| [comp.value, comp.parameters] }
group
.map { |comp| Starry.parse_item(idx.zero? ? comp[1..] : comp) }
.uniq { |comp| [comp.value, comp.parameters] }
end

raise Error.new msg if components.count != uniq_components.count
Expand Down

0 comments on commit be9e702

Please sign in to comment.