[ci] format

This commit is contained in:
Princesseuh 2023-03-07 15:14:15 +00:00 committed by fredkbot
parent 694918a56b
commit 2751584387
2 changed files with 4 additions and 4 deletions

View file

@ -2,11 +2,11 @@ import { isMainThread } from 'node:worker_threads';
import { cpus } from 'os'; import { cpus } from 'os';
import { fileURLToPath } from 'url'; import { fileURLToPath } from 'url';
import type { OutputFormat } from '../../../types.js'; 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 { getModuleURL } from './emscripten-utils.js';
import type { Operation } from './image.js'; import type { Operation } from './image.js';
import * as impl from './impl.js'; import * as impl from './impl.js';
import execOnce from './utils/execOnce.js';
import WorkerPool from './utils/workerPool.js';
const getWorker = execOnce(() => { const getWorker = execOnce(() => {
return new WorkerPool( return new WorkerPool(

View file

@ -16,9 +16,9 @@ export default function toRemarkCollectImages(resolveImage: OptionalResolveImage
if (imagePaths.size === 0) { if (imagePaths.size === 0) {
vfile.data.imagePaths = []; vfile.data.imagePaths = [];
return; return;
} else if(resolveImage) { } else if (resolveImage) {
const mapping = new Map<string, string>(); 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); const id = await resolveImage(path);
mapping.set(path, id); mapping.set(path, id);
} }