summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar bluwy <bluwy@users.noreply.github.com> 2023-09-12 09:58:47 +0000
committerGravatar astrobot-houston <fred+astrobot@astro.build> 2023-09-12 09:58:47 +0000
commit4105491732440e3fd3b984b780e338e0753e3787 (patch)
tree4c56f777c124832b901727224fbfa91b4bf7c92c
parent644825845c11c8d100a9b0d16b69a23c165c529e (diff)
downloadastro-4105491732440e3fd3b984b780e338e0753e3787.tar.gz
astro-4105491732440e3fd3b984b780e338e0753e3787.tar.zst
astro-4105491732440e3fd3b984b780e338e0753e3787.zip
[ci] format
Diffstat (limited to '')
-rw-r--r--packages/astro/src/runtime/client/hmr.ts5
1 files changed, 1 insertions, 4 deletions
diff --git a/packages/astro/src/runtime/client/hmr.ts b/packages/astro/src/runtime/client/hmr.ts
index 277751e28..989ddc6b9 100644
--- a/packages/astro/src/runtime/client/hmr.ts
+++ b/packages/astro/src/runtime/client/hmr.ts
@@ -42,8 +42,5 @@ function isStyle(node: Node): node is HTMLStyleElement {
}
function isViteInjectedStyle(node: Node): node is HTMLStyleElement {
- return (
- isStyle(node) &&
- !!node.getAttribute('data-vite-dev-id')
- );
+ return isStyle(node) && !!node.getAttribute('data-vite-dev-id');
}