From 97b392d70ba6cce09f4f1e155bbfd1b0b2d29ede Mon Sep 17 00:00:00 2001 From: Bernd-Gunter Nitzler Date: Thu, 14 Dec 2023 19:57:50 +0100 Subject: [PATCH] fixed a missing return check --- tools/eventlist/cmd/eventlist/main_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/eventlist/cmd/eventlist/main_test.go b/tools/eventlist/cmd/eventlist/main_test.go index ccff493..98c7abc 100644 --- a/tools/eventlist/cmd/eventlist/main_test.go +++ b/tools/eventlist/cmd/eventlist/main_test.go @@ -128,7 +128,7 @@ func Test_infoOpt(t *testing.T) { //nolint:golint,paralleltest defer restore() r, w, _ := os.Pipe() os.Stdout = w - infoOpt(flag.CommandLine, tt.args.sopt, tt.args.lopt, tt.args.arg) + _ = infoOpt(flag.CommandLine, tt.args.sopt, tt.args.lopt, tt.args.arg) w.Close() buf, _ := io.ReadAll(r) if string(buf) != tt.want {