Skip to content

Commit b4b7902

Browse files
committed
This would be caught in the stream error event
1 parent 9ce3f57 commit b4b7902

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

lib/stores/FileStore.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -106,10 +106,6 @@ class FileStore extends DataStore {
106106

107107
const stream = fs.createWriteStream(path, options);
108108

109-
if (!stream) {
110-
return reject(ERRORS.FILE_WRITE_ERROR);
111-
}
112-
113109
let new_offset = 0;
114110
req.on('data', (buffer) => {
115111
new_offset += buffer.length;

0 commit comments

Comments
 (0)