Remove an unnecessary helper function.

The writeStringLn function repeats what fmt.Fprintln already does.  Since this
package already imports fmt, removing it reduces mass.

Signed-off-by: M. J. Fromberger <michael.j.fromberger@gmail.com>
This commit is contained in:
M. J. Fromberger 2019-01-08 08:37:16 -08:00
parent f28fc12300
commit 8fcadc60dc

View File

@ -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')
}