mirror of
https://github.com/docker/compose.git
synced 2026-02-09 01:59:22 +08:00
fix linting issues
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
committed by
Nicolas De loof
parent
f2b14fe1aa
commit
89d3944837
@@ -22,6 +22,7 @@ const (
|
||||
// TemplateLegacyJSON the legacy json formatting value using go template
|
||||
TemplateLegacyJSON = "{{json.}}"
|
||||
// PRETTY is the constant for default formats on list commands
|
||||
//
|
||||
// Deprecated: use TABLE
|
||||
PRETTY = "pretty"
|
||||
// TABLE Print output in table format with column headers (default)
|
||||
|
||||
@@ -45,7 +45,7 @@ func TestPrint(t *testing.T) {
|
||||
}
|
||||
|
||||
b := &bytes.Buffer{}
|
||||
assert.NilError(t, Print(testList, PRETTY, b, func(w io.Writer) {
|
||||
assert.NilError(t, Print(testList, TABLE, b, func(w io.Writer) {
|
||||
for _, t := range testList {
|
||||
_, _ = fmt.Fprintf(w, "%s\t%s\n", t.Name, t.Status)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user