From 2d20471cd7aad78dcfd1b7d26cb2fb6e7c7efc11 Mon Sep 17 00:00:00 2001 From: Eric Yang Date: Tue, 31 Jan 2017 01:18:22 +0800 Subject: [PATCH] fixing acronyms case Signed-off-by: Eric Yang --- registry/storage/purgeuploads.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/registry/storage/purgeuploads.go b/registry/storage/purgeuploads.go index 7576b189..925b1ae9 100644 --- a/registry/storage/purgeuploads.go +++ b/registry/storage/purgeuploads.go @@ -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 @@ -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 {