Skip to content

Commit

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

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

get #cssLinks() {
Expand Down

0 comments on commit 13dd08d

Please sign in to comment.