From caf1a42bfb57a2709a7283c9ed8cdd9a38f22115 Mon Sep 17 00:00:00 2001 From: cpanato Date: Mon, 30 Dec 2024 14:14:00 +0100 Subject: [PATCH] fix lint Signed-off-by: cpanato --- command/command.go | 2 +- http/example_multi_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/command/command.go b/command/command.go index a645de6..e7094bd 100644 --- a/command/command.go +++ b/command/command.go @@ -52,7 +52,7 @@ type filter struct { } // A generic command exit status. -type Status struct { +type Status struct { //nolint: errname waitStatus syscall.WaitStatus *Stream } diff --git a/http/example_multi_test.go b/http/example_multi_test.go index 8936017..88b24e9 100644 --- a/http/example_multi_test.go +++ b/http/example_multi_test.go @@ -54,7 +54,7 @@ func Example() { defer func() { for i := range w { - w[i].(*os.File).Close() + w[i].(*os.File).Close() //nolint: errcheck } }()