Skip to content

Commit ca4eae5

Browse files
authoredSep 4, 2024··
Remove OpenStruct from primer_octicon cop (#3055)
1 parent 35a735c commit ca4eae5

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed
 

‎.changeset/olive-hats-applaud.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@primer/view-components': patch
3+
---
4+
5+
Remove OpenStruct from primer_octicon cop

‎lib/rubocop/cop/primer/primer_octicon.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ def string_args_to_string(node)
200200
def kwargs(node)
201201
return node.arguments.last if node.arguments.size > 1
202202

203-
OpenStruct.new(keys: [], pairs: [], type: :hash)
203+
RuboCop::AST::HashNode.new("hash")
204204
end
205205

206206
def icon(node)

0 commit comments

Comments
 (0)
Please sign in to comment.