Pārlūkot izejas kodu

Ignore non-constant format string linting error (#2068)

Max 2 gadi atpakaļ
vecāks
revīzija
73f97e244c
1 mainītis faili ar 1 papildinājumiem un 0 dzēšanām
  1. 1 0
      acme/order.go

+ 1 - 0
acme/order.go

@@ -309,6 +309,7 @@ func (o *Order) Finalize(ctx context.Context, db DB, csr *x509.CertificateReques
 		// Add subproblem for webhook errors, others can be added later.
 		// Add subproblem for webhook errors, others can be added later.
 		var webhookErr *webhook.Error
 		var webhookErr *webhook.Error
 		if errors.As(err, &webhookErr) {
 		if errors.As(err, &webhookErr) {
+			//nolint:govet // ignore non-constant format string
 			acmeError := NewDetailedError(ErrorUnauthorizedType, webhookErr.Error())
 			acmeError := NewDetailedError(ErrorUnauthorizedType, webhookErr.Error())
 			acmeError.AddSubproblems(Subproblem{
 			acmeError.AddSubproblems(Subproblem{
 				Type:   fmt.Sprintf("urn:smallstep:webhook:error:%s", webhookErr.Code),
 				Type:   fmt.Sprintf("urn:smallstep:webhook:error:%s", webhookErr.Code),