From 49c755bd2ac083ea3187b69fab5da2afedd2ddad Mon Sep 17 00:00:00 2001 From: Mark McGranaghan Date: Tue, 9 Oct 2012 16:13:13 -0700 Subject: [PATCH] compact --- src/line-filters/line-filters.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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") } } }