Fix indentation after errors.AsType refactor

Signed-off-by: Émile Ré <emile@probo.com>
This commit is contained in:
Émile Ré
2026-05-20 11:53:50 +04:00
parent f5703d390b
commit 3b20f466c3
4 changed files with 61 additions and 61 deletions

View File

@@ -1114,9 +1114,9 @@ func (impl *Implm) runTrustCenterServer(
cert, err := certSelector.GetCertificate(hello)
// Silently reject connections without SNI (load balancers, health checks, scanners)
if err != nil {
if _, ok := errors.AsType[*certmanager.NoSNIError](err); ok {
return nil, nil
}
if _, ok := errors.AsType[*certmanager.NoSNIError](err); ok {
return nil, nil
}
if errors.Is(err, coredata.ErrResourceNotFound) {
return nil, nil