Skip to content

Commit

Permalink
Merge pull request #178 from opf/fix/test-suite
Browse files Browse the repository at this point in the history
Remove OpenStruct from primer_octicon cop
  • Loading branch information
HDinger authored Sep 5, 2024
2 parents b96d09a + 3429d42 commit ece1331
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/eleven-tools-raise.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@openproject/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 ece1331

Please sign in to comment.