Fix wsl blank lines in DNS check paths

Separate cancel calls, error checks, and declarations so
golangci wsl_v5 accepts the cuddling rules.

Signed-off-by: Cursor Agent <cursoragent@cursor.com>

Co-authored-by: Bryan FRIMIN <bryan@frimin.fr>
This commit is contained in:
Cursor Agent
2026-07-24 20:57:44 +00:00
committed by Bryan Frimin
parent fff8319e07
commit f844933b7d
3 changed files with 12 additions and 0 deletions

View File

@@ -208,7 +208,9 @@ func (h *beginChallengeHandler) Process(ctx context.Context, certificate coredat
cnameCtx, cnameCancel := context.WithTimeout(dnsCtx, dnsExchangeTimeout)
err := h.dnsClient.CheckCNAME(cnameCtx, certificate.Hostname, h.cnameTarget)
cnameCancel()
if err != nil {
h.acmeService.metrics.observeStep(provisionPhaseDNSCheck, provisionResultDNSError, dnsStarted)
h.recordSpanError(dnsSpan, err, classifyProvisioningError(err))