Skip to content

Commit 7d1697a

Browse files
committed
optimized code for paging
1 parent 42e32a8 commit 7d1697a

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

tencentcloud/service_tencentcloud_cbs.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -260,9 +260,6 @@ func (me *CbsService) DescribeSnapshotByIds(ctx context.Context, snapshotIdsPara
260260
errRet = err
261261
return
262262
}
263-
if len(response.Response.SnapshotSet) < 1 {
264-
break
265-
}
266263

267264
snapshots = append(snapshots, response.Response.SnapshotSet...)
268265
if len(response.Response.SnapshotSet) < int(pageSize) {

0 commit comments

Comments
 (0)