Fix all errcheck linter issues
Co-authored-by: Junie <junie@jetbrains.com>
This commit is contained in:
@@ -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"`
|
||||
|
||||
Reference in New Issue
Block a user