From bbddf6f33004c038a6da55f9a70dda0ed9a41dc6 Mon Sep 17 00:00:00 2001 From: Jorge Manrubia Date: Mon, 16 Dec 2024 01:48:20 +0100 Subject: [PATCH] More concise --- app/javascript/hotwire_spark/reloaders/css_reloader.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/app/javascript/hotwire_spark/reloaders/css_reloader.js b/app/javascript/hotwire_spark/reloaders/css_reloader.js index ca0abfe5..88fb598d 100644 --- a/app/javascript/hotwire_spark/reloaders/css_reloader.js +++ b/app/javascript/hotwire_spark/reloaders/css_reloader.js @@ -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() {