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

@@ -47,7 +47,9 @@ func (c *Client) CheckCAA(ctx context.Context, hostname, permittedIssuer string)
// child name cannot starve the parent lookup that holds the policy.
queryCtx, cancel := c.withExchangeTimeout(ctx)
resp, err := c.query(queryCtx, msg)
cancel()
if err != nil {
return fmt.Errorf("cannot exchange dns message for caa records: %w", err)
}