[agent-automation] Fix errcheck lint issues in cli_test.go

This commit is contained in:
Fordjent Agent 2026-05-21 15:00:42 +00:00
parent 37083dd4c1
commit b16de316e4

View file

@ -48,13 +48,13 @@ func TestRunOutput(t *testing.T) {
r, w, _ := os.Pipe()
os.Stdout = w
Run([]string{})
_ = Run([]string{})
w.Close()
os.Stdout = oldStdout
buf := new(bytes.Buffer)
buf.ReadFrom(r)
_, _ = buf.ReadFrom(r)
if buf.Len() == 0 {
t.Fatal("expected output")
}