Skip to content

Commit e00043a

Browse files
committed
remove check
1 parent a15ab6c commit e00043a

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

tencentcloud/data_source_tc_cdn_domains.go

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -239,14 +239,11 @@ func dataSourceTencentCloudCdnDomainsRead(d *schema.ResourceData, meta interface
239239
log.Printf("[CRITAL]%s describeDomainsConfigByFilters fail, reason:%s\n ", logId, err.Error())
240240
return err
241241
}
242-
if domainConfigs == nil {
243-
return nil
244-
}
245242

246243
cdnDomainList := make([]map[string]interface{}, 0, len(domainConfigs))
247244
for _, detailDomain := range domainConfigs {
248245
var fullUrlCache bool
249-
if detailDomain.CacheKey!=nil && *detailDomain.CacheKey.FullUrlCache == CDN_SWITCH_ON {
246+
if detailDomain.CacheKey != nil && *detailDomain.CacheKey.FullUrlCache == CDN_SWITCH_ON {
250247
fullUrlCache = true
251248
}
252249

0 commit comments

Comments
 (0)