From 4e4778397f6327d972dba00dbf82f88d116a1ef8 Mon Sep 17 00:00:00 2001 From: Ingvar Stepanyan Date: Tue, 8 Dec 2020 19:12:14 +0000 Subject: [PATCH] Update cli/src/codecs.js --- cli/src/codecs.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/cli/src/codecs.js b/cli/src/codecs.js index d4489fb8..5fe25788 100644 --- a/cli/src/codecs.js +++ b/cli/src/codecs.js @@ -344,9 +344,7 @@ export const codecs = { await oxipngPromise; return { encode: (buffer, width, height, opts) => { - const simplePng = new Uint8Array( - pngEncDec.encode(new Uint8Array(buffer), width, height), - ); + const simplePng = pngEncDec.encode(new Uint8Array(buffer), width, height); return oxipng.optimise(simplePng, opts.level); }, };