Skip to content

Commit

Permalink
More concise
Browse files Browse the repository at this point in the history
  • Loading branch information
jorgemanrubia committed Dec 16, 2024
1 parent bc02c1a commit bbddf6f
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions app/javascript/hotwire_spark/reloaders/css_reloader.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,7 @@ export class CssReloader {
}

#findExistingLinkFor(link) {
return this.#cssLinks.find(newLink => {
return pathWithoutAssetDigest(link.href) === pathWithoutAssetDigest(newLink.href)
}
)
return this.#cssLinks.find(newLink => pathWithoutAssetDigest(link.href) === pathWithoutAssetDigest(newLink.href))
}

get #cssLinks() {
Expand Down

0 comments on commit bbddf6f

Please sign in to comment.