Skip to content

Commit 1585578

Browse files
authored
Merge pull request #3780 from projectblacklight/rubocop-fix-8.x
2 parents c3f8956 + 0d3315c commit 1585578

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/components/blacklight/icons/legacy_icon_component.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ def call
1818

1919
def svg
2020
Rails.cache.fetch([:blacklight_icon_svg, @name]) do
21-
@icon.svg if @icon.present?
21+
@icon.presence&.svg
2222
end
2323
end
2424

0 commit comments

Comments
 (0)