mirror of
https://github.com/ralsina/tartrazine.git
synced 2025-05-23 16:40:08 -03:00
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:
parent
f28fc12300
commit
8fcadc60dc
@ -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…
x
Reference in New Issue
Block a user