Skip to content

Commit

Permalink
Some standardrb appeasement
Browse files Browse the repository at this point in the history
  • Loading branch information
edk committed Feb 24, 2024
1 parent 1972877 commit c47bd1e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/heroic_icons/heroic_icons.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ class Icons
# Updated method signature to accept name and a hash for additional options
def icon(name, **options)
# append or replace? hmmm.
if options[:override_class].present?
options[:class] = options.delete(:override_class)
options[:class] = if options[:override_class].present?
options.delete(:override_class)
elsif options[:class].present?
options[:class] = "#{HeroicIcons.configuration.default_classes} #{options[:class]}"
"#{HeroicIcons.configuration.default_classes} #{options[:class]}"
else
options[:class] = HeroicIcons.configuration.default_classes
HeroicIcons.configuration.default_classes
end
file_path = determine_file_path(name, options)

Expand Down

0 comments on commit c47bd1e

Please sign in to comment.