Skip to content

Commit

Permalink
refactor(File-builder): Reworked close
Browse files Browse the repository at this point in the history
No need for lodash here.
  • Loading branch information
jezhiggins committed Apr 27, 2020
1 parent 16257e0 commit 4ae8d0b
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions lib/File-builder.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 () {
Expand Down

0 comments on commit 4ae8d0b

Please sign in to comment.