Compare commits

...
Author SHA1 Message Date
hedge-sparrow a6cc6c75d8 don't add extra newlines to files. 2025-12-04 14:34:18 +00:00
+1 -2
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
}