Skip to content

Commit

Permalink
Use detect instead
Browse files Browse the repository at this point in the history
  • Loading branch information
xymbol committed Nov 11, 2023
1 parent 630f99d commit 75aa8a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/inline_svg.rb
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ def raise_on_file_not_found?
private

def detect_asset_finder
ASSET_FINDERS.find do |klass|
ASSET_FINDERS.detect do |klass|
asset_finder = klass.new
break asset_finder if asset_finder.match?
rescue NameError
Expand Down

0 comments on commit 75aa8a6

Please sign in to comment.