Skip to content

Commit

Permalink
fixing acronyms case
Browse files Browse the repository at this point in the history
Signed-off-by: Eric Yang <[email protected]>
  • Loading branch information
Eric Yang committed Jan 30, 2017
1 parent fb0bebc commit 2d20471
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions registry/storage/purgeuploads.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ func getOutstandingUploads(ctx context.Context, driver storageDriver.StorageDriv

}

uuid, isContainingDir := uUIDFromPath(filePath)
uuid, isContainingDir := uuidFromPath(filePath)
if uuid == "" {
// Cannot reliably delete
return nil
Expand Down Expand Up @@ -111,10 +111,10 @@ func getOutstandingUploads(ctx context.Context, driver storageDriver.StorageDriv
return uploads, errors
}

// uUIDFromPath extracts the upload UUID from a given path
// uuidFromPath extracts the upload UUID from a given path
// If the UUID is the last path component, this is the containing
// directory for all upload files
func uUIDFromPath(path string) (string, bool) {
func uuidFromPath(path string) (string, bool) {
components := strings.Split(path, "/")
for i := len(components) - 1; i >= 0; i-- {
if u, err := uuid.Parse(components[i]); err == nil {
Expand Down

0 comments on commit 2d20471

Please sign in to comment.