Skip to content

Commit

Permalink
refactor the code style in distribution/registry/storage/driver/s3-go…
Browse files Browse the repository at this point in the history
…amz/s3.go

Signed-off-by: uhayate <[email protected]>
  • Loading branch information
uhayate committed Feb 13, 2017
1 parent b1993c9 commit 75c2e52
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions registry/storage/driver/s3-goamz/s3.go
Original file line number Diff line number Diff line change
Expand Up @@ -443,14 +443,14 @@ func (d *driver) List(ctx context.Context, opath string) ([]string, error) {
directories = append(directories, strings.Replace(commonPrefix[0:len(commonPrefix)-1], d.s3Path(""), prefix, 1))
}

if listResponse.IsTruncated {
listResponse, err = d.Bucket.List(d.s3Path(path), "/", listResponse.NextMarker, listMax)
if err != nil {
return nil, err
}
} else {
if !listResponse.IsTruncated {
break
}

listResponse, err = d.Bucket.List(d.s3Path(path), "/", listResponse.NextMarker, listMax)
if err != nil {
return nil, err
}
}

if opath != "/" {
Expand Down

0 comments on commit 75c2e52

Please sign in to comment.