fix: remove double } (#8370)

* fix: remove extra `}`

* changeset: add
This commit is contained in:
Matteo Manfredi 2023-09-02 03:03:50 +02:00 committed by GitHub
parent e34175be34
commit 06e7256b58
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 5 deletions

View file

@ -0,0 +1,5 @@
---
'astro': patch
---
Removed extra curly brace.

View file

@ -246,7 +246,7 @@ async function generateImage(
const counter = `(${count}/${totalCount})`;
logger.info(
null,
` ${green('▶')} ${path} ${dim(statsText)} ${dim(timeIncrease)} ${dim(counter)}}`
` ${green('▶')} ${path} ${dim(statsText)} ${dim(timeIncrease)} ${dim(counter)}`
);
}
@ -411,10 +411,10 @@ function getInvalidRouteSegmentError(
...AstroErrorData.InvalidDynamicRoute,
message: invalidParam
? AstroErrorData.InvalidDynamicRoute.message(
route.route,
JSON.stringify(invalidParam),
JSON.stringify(received)
)
route.route,
JSON.stringify(invalidParam),
JSON.stringify(received)
)
: `Generated path for ${route.route} is invalid.`,
hint,
});