mirror of
https://github.com/docker/compose.git
synced 2025-07-22 21:24:38 +02:00
Fix lint
Signed-off-by: Ulysses Souza <ulyssessouza@gmail.com>
This commit is contained in:
parent
b8a1e6c888
commit
8c51b8b67d
@ -26,7 +26,7 @@ import (
|
|||||||
// PrintPrettySection prints a tabbed section on the writer parameter
|
// PrintPrettySection prints a tabbed section on the writer parameter
|
||||||
func PrintPrettySection(out io.Writer, printer func(writer io.Writer), headers ...string) error {
|
func PrintPrettySection(out io.Writer, printer func(writer io.Writer), headers ...string) error {
|
||||||
w := tabwriter.NewWriter(out, 20, 1, 3, ' ', 0)
|
w := tabwriter.NewWriter(out, 20, 1, 3, ' ', 0)
|
||||||
fmt.Fprintln(w, strings.Join(headers, "\t"))
|
_, _ = fmt.Fprintln(w, strings.Join(headers, "\t"))
|
||||||
printer(w)
|
printer(w)
|
||||||
return w.Flush()
|
return w.Flush()
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user