change var name style

This commit is contained in:
Leo Chen 2024-10-10 22:45:19 +08:00
parent d2b6ab75b7
commit 312c6e685a

View File

@ -103,9 +103,9 @@ func (t *tencentCdn) deploy(certId string) error {
// 如果是泛域名就从cdn列表下获取SSL证书中的可用域名
if(strings.Contains(t.option.Domain, "*")){
list, err_get_list := t.getDomainList()
if err_get_list != nil {
return fmt.Errorf("failed to get certificate domain list: %w", err_get_list)
list, errGetList := t.getDomainList()
if errGetList != nil {
return fmt.Errorf("failed to get certificate domain list: %w", errGetList)
}
if list == nil || len(list) == 0 {
return fmt.Errorf("failed to get certificate domain list: empty list.")