diff --git a/lib/storage.js b/lib/storage.js index 0b94439..74daf08 100755 --- a/lib/storage.js +++ b/lib/storage.js @@ -93,7 +93,8 @@ storage.crashSafeWriteFileLines = (filename, lines, callback = () => {}) => { flags: 'w' }) for (const line of lines) { - stream.write(line+'\n') + stream.write(line) + stream.write('\n') } stream.close(() => cb()) } catch (err) {