Merge pull request #187 from creachadair/cleanup

Remove an unnecessary helper function.
This commit is contained in:
M. J. Fromberger 2019-01-23 06:59:00 -08:00 committed by GitHub
commit 3748186e13
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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