summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar natemoo-re <natemoo-re@users.noreply.github.com> 2022-05-24 16:59:29 +0000
committerGravatar github-actions[bot] <github-actions[bot]@users.noreply.github.com> 2022-05-24 16:59:29 +0000
commit58b78229c103bfa4cf0260cefb6734b5918e90aa (patch)
treef6a4d7e021e6bb55787c95137d29eef39c72e3b7
parent296fff2cffd4632f2d2e891069f52f6859a5c076 (diff)
downloadastro-58b78229c103bfa4cf0260cefb6734b5918e90aa.tar.gz
astro-58b78229c103bfa4cf0260cefb6734b5918e90aa.tar.zst
astro-58b78229c103bfa4cf0260cefb6734b5918e90aa.zip
[ci] format
-rw-r--r--packages/astro/src/runtime/server/index.ts6
1 files changed, 5 insertions, 1 deletions
diff --git a/packages/astro/src/runtime/server/index.ts b/packages/astro/src/runtime/server/index.ts
index 433df1a99..762e764ce 100644
--- a/packages/astro/src/runtime/server/index.ts
+++ b/packages/astro/src/runtime/server/index.ts
@@ -435,7 +435,11 @@ function internalSpreadAttributes(values: Record<any, any>, shouldEscape = true)
}
// Adds support for `<Component {...value} />
-export function spreadAttributes(values: Record<any, any>, name: string, { class: scopedClassName }: { class?: string } = {}) {
+export function spreadAttributes(
+ values: Record<any, any>,
+ name: string,
+ { class: scopedClassName }: { class?: string } = {}
+) {
let output = '';
// If the compiler passes along a scoped class, merge with existing props or inject it
if (scopedClassName) {