diff --git a/cmd/enry/main.go b/cmd/enry/main.go index f080a57..d97a862 100644 --- a/cmd/enry/main.go +++ b/cmd/enry/main.go @@ -158,12 +158,12 @@ func usage() { func printBreakDown(out map[string][]string, buff *bytes.Buffer) { for name, language := range out { - writeStringLn(name, buff) + fmt.Fprintln(buff, name) for _, file := range language { - writeStringLn(file, buff) + fmt.Fprintln(buff, file) } - writeStringLn("", buff) + fmt.Fprintln(buff) } } @@ -378,8 +378,3 @@ func getFileType(file string, content []byte) string { return "Text" } } - -func writeStringLn(s string, buff *bytes.Buffer) { - buff.WriteString(s) - buff.WriteByte('\n') -}