Skip to content

Commit

Permalink
Merge pull request #2192 from uhayate/refactor-code-style
Browse files Browse the repository at this point in the history
refactor the code style in distribution/registry/storage/driver/s3-goamz/s3.go
  • Loading branch information
dmcgowan authored Feb 16, 2017
2 parents 62d8d91 + 75c2e52 commit 4f87c80
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 @@ -441,14 +441,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 4f87c80

Please sign in to comment.