diff --git a/src/index.js b/src/index.js index 472aaa5..2da5e2b 100644 --- a/src/index.js +++ b/src/index.js @@ -206,11 +206,7 @@ class CompressionPlugin { return; } - if (!Buffer.isBuffer(result)) { - resolve(Buffer.from(/** @type {string} */ (result))); - } else { - resolve(result); - } + resolve(Buffer.from(/** @type {Buffer} */ (result))); }, ); });