Skip to content

Commit

Permalink
Insert a trailing newline when appending new snapshot entries
Browse files Browse the repository at this point in the history
I reckon this fixes a regression introduced in #1852.
  • Loading branch information
novemberborn committed Oct 22, 2018
1 parent 6ab6d35 commit bf00d79
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/snapshot-manager.js
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,8 @@ function appendReportEntries(existingReport, entries) {
buffers.unshift(prepend);
byteLength += prepend.byteLength;

buffers.push(REPORT_TRAILING_NEWLINE);
byteLength += REPORT_TRAILING_NEWLINE.byteLength;
return Buffer.concat(buffers, byteLength);
}

Expand Down

0 comments on commit bf00d79

Please sign in to comment.