From fca6c3c03db70a4aa4f12b18c1e7802f416d2ce9 Mon Sep 17 00:00:00 2001 From: phated Date: Mon, 18 Apr 2022 22:00:31 +0000 Subject: [PATCH] chore: Run prettier --- index.js | 2 +- test/index.js | 18 +++++++++++++++--- 2 files changed, 16 insertions(+), 4 deletions(-) diff --git a/index.js b/index.js index 7a707b5..32ad9ec 100644 --- a/index.js +++ b/index.js @@ -7,7 +7,7 @@ var BOM = '\ufeff'; function removeBomStream(encoding) { encoding = (encoding || '').toLowerCase(); - var isUTF8 = (encoding === 'utf-8' || encoding === 'utf8'); + var isUTF8 = encoding === 'utf-8' || encoding === 'utf8'; // Needed due to https://github.com/nodejs/node/pull/42779 if (!isUTF8) { diff --git a/test/index.js b/test/index.js index b8c9be7..bffa706 100644 --- a/test/index.js +++ b/test/index.js @@ -123,7 +123,11 @@ describe('removeBomStream', function () { } pipe( - [fs.createReadStream(filepath), removeBomStream('utf-16be'), concat(assert)], + [ + fs.createReadStream(filepath), + removeBomStream('utf-16be'), + concat(assert), + ], done ); }); @@ -138,7 +142,11 @@ describe('removeBomStream', function () { } pipe( - [fs.createReadStream(filepath), removeBomStream('utf-16be'), concat(assert)], + [ + fs.createReadStream(filepath), + removeBomStream('utf-16be'), + concat(assert), + ], done ); }); @@ -153,7 +161,11 @@ describe('removeBomStream', function () { } pipe( - [fs.createReadStream(filepath), removeBomStream('utf-16le'), concat(assert)], + [ + fs.createReadStream(filepath), + removeBomStream('utf-16le'), + concat(assert), + ], done ); });