Skip to content

Commit 9dd66df

Browse files
iddanKhaledgarbaya
authored andcommitted
use file.end() instead of file.close()
This is the officially supported non breaking API
1 parent c92dbbb commit 9dd66df

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/download-asset.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export default function downloadAsset (url, directory) {
3232
response.pipe(file)
3333

3434
file.on('finish', function () {
35-
file.close()
35+
file.end()
3636
resolve(localFile)
3737
})
3838
})

0 commit comments

Comments
 (0)