Skip to content

Commit

Permalink
cli/command/formatter: Error return value of ContainerWrite is not …
Browse files Browse the repository at this point in the history
…checked (errcheck)

```
cli/command/formatter/container_test.go:315:17: Error return value of `ContainerWrite` is not checked (errcheck)
		ContainerWrite(context.context, containers)
		              ^
```

Signed-off-by: Sebastiaan van Stijn <[email protected]>
  • Loading branch information
thaJeztah committed Oct 31, 2019
1 parent 008f6a2 commit e74e2c7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cli/command/formatter/container_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,8 @@ func TestContainerContextWriteWithNoContainers(t *testing.T) {
}

for _, context := range contexts {
ContainerWrite(context.context, containers)
err := ContainerWrite(context.context, containers)
assert.NilError(t, err)
assert.Check(t, is.Equal(context.expected, out.String()))
// Clean buffer
out.Reset()
Expand Down

0 comments on commit e74e2c7

Please sign in to comment.