don't add extra newlines to files.

This commit is contained in:
hedge-sparrow
2025-12-04 14:34:18 +00:00
parent 8ed6dbf581
commit a6cc6c75d8

View File

@@ -126,8 +126,7 @@ func (r *MultiLineRedactor) Redact(input io.Reader, path string) io.Reader {
}
if flushLastLine {
// Append newline since scanner strip it
err = writeBytes(writer, line1, NEW_LINE)
err = writeBytes(writer, line1)
if err != nil {
return
}