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', () => { readable.on('end', () => {
stream.close(cb) stream.close(cb)
}) })
readable.on('error', () => cb) readable.on('error', cb)
stream.on('error', () => cb) stream.on('error', cb)
} catch (err) { } catch (err) {
cb(err) cb(err)
} }

Loading…
Cancel
Save