Skip to content

Commit

Permalink
Merge pull request #305 from Shopify/Alex/group_nodes_tweaks
Browse files Browse the repository at this point in the history
Remove unnecessary `compact!`
  • Loading branch information
amomchilov authored May 30, 2024
2 parents 95d88b5 + da900d8 commit 55a955a
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion lib/rbi/rewriters/group_nodes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ def visit(node)
case node
when Tree
kinds = node.nodes.map { |child| group_kind(child) }
kinds.compact!
kinds.uniq!

groups = {}
Expand Down

0 comments on commit 55a955a

Please sign in to comment.