Skip to content

Commit 7186828

Browse files
author
hellertang
authored
fix clb log (#955)
1 parent 91b8f4e commit 7186828

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tencentcloud/service_tencentcloud_cls.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ func (me *ClsService) DescribeClsLogsetById(ctx context.Context, logSetId string
119119
offset += pageSize
120120
}
121121

122-
if len(instances) < 0 {
122+
if len(instances) < 1 {
123123
return
124124
}
125125
logset = instances[0]
@@ -254,7 +254,7 @@ func (me *ClsService) DescribeClsTopicById(ctx context.Context, topicId string)
254254
offset += pageSize
255255
}
256256

257-
if len(instances) < 0 {
257+
if len(instances) < 1 {
258258
return
259259
}
260260
topic = instances[0]
@@ -385,7 +385,7 @@ func (me *ClsService) DescribeClsMachineGroupById(ctx context.Context, id string
385385
offset += pageSize
386386
}
387387

388-
if len(instances) < 0 {
388+
if len(instances) < 1 {
389389
return
390390
}
391391
machineGroup = instances[0]
@@ -516,7 +516,7 @@ func (me *ClsService) DescribeClsCosShipperById(ctx context.Context, shipperId s
516516
offset += pageSize
517517
}
518518

519-
if len(instances) < 0 {
519+
if len(instances) < 1 {
520520
return
521521
}
522522
instance = instances[0]

0 commit comments

Comments
 (0)