Skip to content

Commit e735d85

Browse files
matthewpastrobot-houston
authored andcommitted
[ci] format
1 parent 8079482 commit e735d85

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

packages/astro/src/assets/fonts/implementations/url-proxy.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export function createUrlProxy({
2626
type,
2727
weight: renderFontWeight(data.weight),
2828
style: data.style,
29-
subset: data.subset
29+
subset: data.subset,
3030
}
3131
: null,
3232
data,

packages/astro/src/assets/fonts/runtime.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,11 @@ export function filterPreloads(
3333
return data.filter(({ weight, style, subset }) =>
3434
preload.some((p) => {
3535
// Always check the weight
36-
if (p.weight !== undefined && weight !== undefined && !checkWeight(p.weight.toString(), weight)) {
36+
if (
37+
p.weight !== undefined &&
38+
weight !== undefined &&
39+
!checkWeight(p.weight.toString(), weight)
40+
) {
3741
return false;
3842
}
3943
// Only check the style if specified

packages/astro/src/cli/add/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ export default async function seed() {
8686
{
8787
"main": "dist/_worker.js/index.js",
8888
"name": ${JSON.stringify(name)},
89-
"compatibility_date": ${JSON.stringify(new Date().toISOString().slice(0,10))},
89+
"compatibility_date": ${JSON.stringify(new Date().toISOString().slice(0, 10))},
9090
"compatibility_flags": [
9191
"nodejs_compat",
9292
"global_fetch_strictly_public"

0 commit comments

Comments
 (0)