refactor the code style in distribution/registry/storage/driver/s3-goamz/s3.go
Signed-off-by: uhayate <uhayate.gong@daocloud.io>master
							parent
							
								
									b1993c9530
								
							
						
					
					
						commit
						75c2e524a1
					
				|  | @ -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)) | 			directories = append(directories, strings.Replace(commonPrefix[0:len(commonPrefix)-1], d.s3Path(""), prefix, 1)) | ||||||
| 		} | 		} | ||||||
| 
 | 
 | ||||||
| 		if listResponse.IsTruncated { | 		if !listResponse.IsTruncated { | ||||||
| 			listResponse, err = d.Bucket.List(d.s3Path(path), "/", listResponse.NextMarker, listMax) |  | ||||||
| 			if err != nil { |  | ||||||
| 				return nil, err |  | ||||||
| 			} |  | ||||||
| 		} else { |  | ||||||
| 			break | 			break | ||||||
| 		} | 		} | ||||||
|  | 
 | ||||||
|  | 		listResponse, err = d.Bucket.List(d.s3Path(path), "/", listResponse.NextMarker, listMax) | ||||||
|  | 		if err != nil { | ||||||
|  | 			return nil, err | ||||||
|  | 		} | ||||||
| 	} | 	} | ||||||
| 
 | 
 | ||||||
| 	if opath != "/" { | 	if opath != "/" { | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue