Skip to content

Commit

Permalink
Reads better inverted
Browse files Browse the repository at this point in the history
  • Loading branch information
dhh committed May 17, 2024
1 parent 0d8d1ab commit 624a3fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/propshaft/compiler/css_asset_urls.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def referenced_by(asset)
asset.content.scan(ASSET_URL_PATTERN).each do |referenced_asset_url, _|
referenced_asset = load_path.find(resolve_path(asset.logical_path.dirname, referenced_asset_url))

if references.exclude?(referenced_asset)
unless references.include?(referenced_asset)
references << referenced_asset
references.merge referenced_by(referenced_asset)
end
Expand Down

0 comments on commit 624a3fd

Please sign in to comment.