diff --git a/src/line-filters/line-filters.go b/src/line-filters/line-filters.go index 9f43803..290a1e8 100644 --- a/src/line-filters/line-filters.go +++ b/src/line-filters/line-filters.go @@ -18,8 +18,6 @@ import "bytes" import "os" import "io" -var newline = []byte("\n") - func main() { // Wrapping the unbuffered `os.Stdin` with a buffered @@ -54,7 +52,7 @@ func main() { // Unless this read was for a prefix (not the full // line), we need to add our own newline. if !pfx { - out.Write(newline) + out.WriteString("\n") } } }