Add final new line to align behavior with Node.js version

pull/5/head
eliot-akira 3 years ago
parent 437a841e72
commit ba14f11949
  1. 1
      browser-version/lib/storage.js

@ -69,6 +69,7 @@ const mkdir = (dir, options, callback) => callback()
const ensureDatafileIntegrity = (filename, callback) => callback(null) const ensureDatafileIntegrity = (filename, callback) => callback(null)
const crashSafeWriteFileLines = (filename, lines, callback) => { const crashSafeWriteFileLines = (filename, lines, callback) => {
lines.push('') // Add final new line
writeFile(filename, lines.join('\n'), callback) writeFile(filename, lines.join('\n'), callback)
} }

Loading…
Cancel
Save