Fix all errcheck linter issues

Co-authored-by: Junie <junie@jetbrains.com>
This commit is contained in:
2026-03-15 10:36:35 -07:00
parent 87b7323367
commit d0b1875dbb
13 changed files with 71 additions and 71 deletions

View File

@@ -82,7 +82,7 @@ func unsealViaGRPC(addr, caCertPath, password string) error {
if err != nil {
return fmt.Errorf("grpc dial: %w", err)
}
defer conn.Close()
defer func() { _ = conn.Close() }()
client := metacryptv1.NewSystemServiceClient(conn)
resp, err := client.Unseal(context.Background(), &metacryptv1.UnsealRequest{Password: password})
@@ -113,7 +113,7 @@ func unsealViaREST(addr, caCertPath, password string) error {
if err != nil {
return err
}
defer resp.Body.Close()
defer func() { _ = resp.Body.Close() }()
var result struct {
State string `json:"state"`