fix error callbacks

pull/5/head
mehdi 3 years ago
parent 8c4f56a04a
commit 148d7c8215
  1. 4
      lib/storage.js

@ -103,8 +103,8 @@ storage.crashSafeWriteFileLines = (filename, lines, callback = () => {}) => {
readable.on('end', () => {
stream.close(cb)
})
readable.on('error', () => cb)
stream.on('error', () => cb)
readable.on('error', cb)
stream.on('error', cb)
} catch (err) {
cb(err)
}

Loading…
Cancel
Save