Skip to content

Commit

Permalink
Remove OpenStruct from primer_octicon cop (#3055)
Browse files Browse the repository at this point in the history
  • Loading branch information
camertron authored Sep 4, 2024
1 parent 35a735c commit ca4eae5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/olive-hats-applaud.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@primer/view-components': patch
---

Remove OpenStruct from primer_octicon cop
2 changes: 1 addition & 1 deletion lib/rubocop/cop/primer/primer_octicon.rb
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ def string_args_to_string(node)
def kwargs(node)
return node.arguments.last if node.arguments.size > 1

OpenStruct.new(keys: [], pairs: [], type: :hash)
RuboCop::AST::HashNode.new("hash")
end

def icon(node)
Expand Down

0 comments on commit ca4eae5

Please sign in to comment.