Skip to content

Commit bf00d79

Browse files
committed
Insert a trailing newline when appending new snapshot entries
I reckon this fixes a regression introduced in #1852.
1 parent 6ab6d35 commit bf00d79

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/snapshot-manager.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,8 @@ function appendReportEntries(existingReport, entries) {
151151
buffers.unshift(prepend);
152152
byteLength += prepend.byteLength;
153153

154+
buffers.push(REPORT_TRAILING_NEWLINE);
155+
byteLength += REPORT_TRAILING_NEWLINE.byteLength;
154156
return Buffer.concat(buffers, byteLength);
155157
}
156158

0 commit comments

Comments
 (0)