From 13dd08dd078acf351430386c2c221c35b864cbe5 Mon Sep 17 00:00:00 2001 From: Jorge Manrubia Date: Mon, 16 Dec 2024 00:43:56 +0100 Subject: [PATCH] More concise --- app/javascript/hotwire_spark/reloaders/css_reloader.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/app/javascript/hotwire_spark/reloaders/css_reloader.js b/app/javascript/hotwire_spark/reloaders/css_reloader.js index 0ee7235c..2ae8b2cf 100644 --- a/app/javascript/hotwire_spark/reloaders/css_reloader.js +++ b/app/javascript/hotwire_spark/reloaders/css_reloader.js @@ -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() {