From 4ae8d0b6f15f832d7e13a5810048c55c1dc42db1 Mon Sep 17 00:00:00 2001 From: Jez Higgins Date: Mon, 27 Apr 2020 11:07:36 +0100 Subject: [PATCH] refactor(File-builder): Reworked close No need for lodash here. --- lib/File-builder.js | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/lib/File-builder.js b/lib/File-builder.js index a094f10..5795129 100644 --- a/lib/File-builder.js +++ b/lib/File-builder.js @@ -130,12 +130,7 @@ class FileBuilder { } close () { - _.forEach( - this.files, - function (file) { - file.writeStream.close() - } - ) + Object.values(this.files).forEach(file => file.writeStream.close()) } getManifest () {