Remove imagePool constructor parameter
continuous-integration/drone/push Build is failing Details

This commit is contained in:
Amy 2021-10-16 01:15:06 -04:00
parent aa32e20c6e
commit 92eec34fa7
1 changed files with 1 additions and 2 deletions

View File

@ -4,7 +4,6 @@
// TODO: upgrade libsquoosh once types are available: https://github.com/GoogleChromeLabs/squoosh/issues/1077
import { cpus } from "os";
import path from "path";
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
@ -30,7 +29,7 @@ export async function optimizeImages() {
const imagePaths = await getFilePathsInDirectory(IMAGES_SOURCE_DIRECTORY);
await fse.emptyDir(IMAGES_DESTINATION_DIRECTORY);
const imagePool = new ImagePool(cpus().length);
const imagePool = new ImagePool();
await Promise.all(
imagePaths.map(async (imagePath) => {