Skip to content

Commit 0d3315c

Browse files
committed
[8.x] fix rubocop Rails/Presence lint issue flagged in CI.
1 parent c3f8956 commit 0d3315c

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)