app/lib/primer/octicon/cache.rb in openproject-primer_view_components-0.16.0 vs app/lib/primer/octicon/cache.rb in openproject-primer_view_components-0.17.0

- old
+ new

@@ -2,10 +2,10 @@ module Primer module Octicon # :nodoc: class Cache - LOOKUP = {} # rubocop:disable Style/MutableConstant + LOOKUP = {} # Preload the top 20 used icons. PRELOADED_ICONS = [:alert, :check, :"chevron-down", :paste, :clock, :"dot-fill", :info, :"kebab-horizontal", :link, :lock, :mail, :pencil, :plus, :question, :repo, :search, :"shield-lock", :star, :trash, :x].freeze class << self def get_key(symbol:, size:, width: nil, height: nil)