diff --git a/tencentcloud/service_tencent_ssl_certificate.go b/tencentcloud/service_tencent_ssl_certificate.go index 5e15244fe0..9eedb677fa 100644 --- a/tencentcloud/service_tencent_ssl_certificate.go +++ b/tencentcloud/service_tencent_ssl_certificate.go @@ -351,7 +351,7 @@ func (me *SSLService) CancelAuditCertificate(ctx context.Context, request *ssl.C err = fmt.Errorf("TencentCloud SDK %s return empty response", request.GetAction()) return } - if *response.Response.Result != true { + if !*response.Response.Result { err = fmt.Errorf("TencentCloud SDK %s CancelAudit failed", request.GetAction()) return err }