From fbd0d37a4d13ad54e53a90e259c03b9a4fae7332 Mon Sep 17 00:00:00 2001 From: Russell Sinclair Date: Tue, 20 Aug 2019 12:03:42 -0400 Subject: [PATCH] Per comment --- src/index.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/index.js b/src/index.js index c0a3f41..c1671e1 100644 --- a/src/index.js +++ b/src/index.js @@ -29,10 +29,6 @@ module.exports = function mjml(mjmlEngine, options) { const raise = error(localOptions.filePath); - if (localOptions.fileExt === undefined) { - localOptions.fileExt = ".html"; - } - if (file.isStream()) { this.emit("error", raise("Streams are not supported!")); return callback(); @@ -51,7 +47,7 @@ module.exports = function mjml(mjmlEngine, options) { // [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues output.contents = Buffer.from(render.html); - output.path = replaceExt(file.path.toString(), localOptions.fileExt); + output.path = replaceExt(file.path.toString(), localOptions.fileExt || ".html"); this.push(output); } return callback();