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:
committed by
Bryan Frimin
parent
fff8319e07
commit
f844933b7d
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user