Skip to content

Commit

Permalink
[ci] format
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewp authored and astrobot-houston committed Dec 8, 2022
1 parent 2c836b9 commit be26e36
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
5 changes: 4 additions & 1 deletion packages/astro/src/core/errors/dev/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,10 @@ export const incompatPackageExp = new RegExp(`(${Object.keys(incompatiblePackage
* Useful for consistent reporting regardless of where the error surfaced from.
*/
export function collectErrorMetadata(e: any, rootFolder?: URL | undefined): ErrorWithMetadata {
const err = AggregateError.is(e) || Array.isArray((e as any).errors) ? (e.errors as SSRError[]) : [e as SSRError];
const err =
AggregateError.is(e) || Array.isArray((e as any).errors)
? (e.errors as SSRError[])
: [e as SSRError];

err.forEach((error) => {
if (error.stack) {
Expand Down
1 change: 0 additions & 1 deletion packages/astro/test/ssr-params.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,4 @@ describe('Astro.params in SSR', () => {
const $ = cheerio.load(html);
expect($('.category').text()).to.equal('food');
});

});

0 comments on commit be26e36

Please sign in to comment.