mirror of
https://github.com/replicatedhq/troubleshoot.git
synced 2026-02-14 10:19:54 +00:00
don't add extra newlines to files.
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user