mirror of
https://github.com/ralsina/tartrazine.git
synced 2024-11-10 13:32:24 +00:00
Merge pull request #187 from creachadair/cleanup
Remove an unnecessary helper function.
This commit is contained in:
commit
3748186e13
@ -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')
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user