summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Princesseuh <Princesseuh@users.noreply.github.com> 2023-03-07 15:14:15 +0000
committerGravatar fredkbot <fred+astrobot@astro.build> 2023-03-07 15:14:15 +0000
commit27515843873ca47d56d30c7fcefedaf5cb2e5208 (patch)
tree7daa8cb438b7978f9ec071dbb7652fc283d534e6
parent694918a56b01104831296be0c25456135a63c784 (diff)
downloadastro-27515843873ca47d56d30c7fcefedaf5cb2e5208.tar.gz
astro-27515843873ca47d56d30c7fcefedaf5cb2e5208.tar.zst
astro-27515843873ca47d56d30c7fcefedaf5cb2e5208.zip
[ci] format
-rw-r--r--packages/astro/src/assets/services/vendor/squoosh/image-pool.ts4
-rw-r--r--packages/markdown/remark/src/remark-collect-images.ts4
2 files changed, 4 insertions, 4 deletions
diff --git a/packages/astro/src/assets/services/vendor/squoosh/image-pool.ts b/packages/astro/src/assets/services/vendor/squoosh/image-pool.ts
index d1e57b629..ac72fc4ef 100644
--- a/packages/astro/src/assets/services/vendor/squoosh/image-pool.ts
+++ b/packages/astro/src/assets/services/vendor/squoosh/image-pool.ts
@@ -2,11 +2,11 @@ import { isMainThread } from 'node:worker_threads';
import { cpus } from 'os';
import { fileURLToPath } from 'url';
import type { OutputFormat } from '../../../types.js';
-import execOnce from './utils/execOnce.js';
-import WorkerPool from './utils/workerPool.js';
import { getModuleURL } from './emscripten-utils.js';
import type { Operation } from './image.js';
import * as impl from './impl.js';
+import execOnce from './utils/execOnce.js';
+import WorkerPool from './utils/workerPool.js';
const getWorker = execOnce(() => {
return new WorkerPool(
diff --git a/packages/markdown/remark/src/remark-collect-images.ts b/packages/markdown/remark/src/remark-collect-images.ts
index a9e769429..bb6a6ddb0 100644
--- a/packages/markdown/remark/src/remark-collect-images.ts
+++ b/packages/markdown/remark/src/remark-collect-images.ts
@@ -16,9 +16,9 @@ export default function toRemarkCollectImages(resolveImage: OptionalResolveImage
if (imagePaths.size === 0) {
vfile.data.imagePaths = [];
return;
- } else if(resolveImage) {
+ } else if (resolveImage) {
const mapping = new Map<string, string>();
- for(const path of Array.from(imagePaths)) {
+ for (const path of Array.from(imagePaths)) {
const id = await resolveImage(path);
mapping.set(path, id);
}