Skip to content

Commit

Permalink
Avoid mutating options hash in Octicon#initialize
Browse files Browse the repository at this point in the history
  • Loading branch information
jhawthorn committed Jan 19, 2021
1 parent 099d3a2 commit 0255190
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/octicons_gem/lib/octicons/octicon.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ def initialize(symbol, options = {})
@width = octicon["width"]
@height = octicon["height"]
@keywords = octicon["keywords"]
@options = options
@options = options.dup
@options.merge!({
class: classes,
viewBox: viewbox,
Expand Down

0 comments on commit 0255190

Please sign in to comment.