mirror of
https://github.com/rclone/rclone.git
synced 2024-12-28 09:59:27 +01:00
s3: fix for unchecked err value in s3 listv2
This commit is contained in:
parent
5012f78c45
commit
1a5160c7aa
@ -3151,8 +3151,11 @@ func (f *Fs) newV2List(req *s3.ListObjectsV2Input) bucketLister {
|
|||||||
// Do a V2 listing
|
// Do a V2 listing
|
||||||
func (ls *v2List) List(ctx context.Context) (resp *s3.ListObjectsV2Output, versionIDs []*string, err error) {
|
func (ls *v2List) List(ctx context.Context) (resp *s3.ListObjectsV2Output, versionIDs []*string, err error) {
|
||||||
resp, err = ls.f.c.ListObjectsV2WithContext(ctx, &ls.req)
|
resp, err = ls.f.c.ListObjectsV2WithContext(ctx, &ls.req)
|
||||||
|
if err != nil {
|
||||||
|
return nil, nil, err
|
||||||
|
}
|
||||||
ls.req.ContinuationToken = resp.NextContinuationToken
|
ls.req.ContinuationToken = resp.NextContinuationToken
|
||||||
return resp, nil, err
|
return resp, nil, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// URL Encode the listings
|
// URL Encode the listings
|
||||||
|
Loading…
Reference in New Issue
Block a user