mirror of https://github.com/docker/cli.git
cli/command: Error return value of `cli.Apply` is not checked (errcheck)
``` cli/command/cli_test.go:297:11: Error return value of `cli.Apply` is not checked (errcheck) cli.Apply( ^ ``` Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
parent
9275e2cb66
commit
008f6a2da3
|
@ -294,11 +294,12 @@ func TestNewDockerCliAndOperators(t *testing.T) {
|
||||||
inbuf := bytes.NewBuffer([]byte("input"))
|
inbuf := bytes.NewBuffer([]byte("input"))
|
||||||
outbuf := bytes.NewBuffer(nil)
|
outbuf := bytes.NewBuffer(nil)
|
||||||
errbuf := bytes.NewBuffer(nil)
|
errbuf := bytes.NewBuffer(nil)
|
||||||
cli.Apply(
|
err = cli.Apply(
|
||||||
WithInputStream(ioutil.NopCloser(inbuf)),
|
WithInputStream(ioutil.NopCloser(inbuf)),
|
||||||
WithOutputStream(outbuf),
|
WithOutputStream(outbuf),
|
||||||
WithErrorStream(errbuf),
|
WithErrorStream(errbuf),
|
||||||
)
|
)
|
||||||
|
assert.NilError(t, err)
|
||||||
// Check input stream
|
// Check input stream
|
||||||
inputStream, err := ioutil.ReadAll(cli.In())
|
inputStream, err := ioutil.ReadAll(cli.In())
|
||||||
assert.NilError(t, err)
|
assert.NilError(t, err)
|
||||||
|
|
Loading…
Reference in New Issue