From 8c05756141eb3b22d41860c58735bbf21024fd7e Mon Sep 17 00:00:00 2001 From: Manish Tomar Date: Mon, 6 Aug 2018 09:46:42 -0700 Subject: [PATCH] lint fix Signed-off-by: Manish Tomar --- registry/storage/catalog.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/registry/storage/catalog.go b/registry/storage/catalog.go index 4db8bd88..ebf80e05 100644 --- a/registry/storage/catalog.go +++ b/registry/storage/catalog.go @@ -72,13 +72,13 @@ func (reg *registry) Enumerate(ctx context.Context, ingester func(string) error) } // Remove removes a repository from storage -func (r *registry) Remove(ctx context.Context, name reference.Named) error { +func (reg *registry) Remove(ctx context.Context, name reference.Named) error { root, err := pathFor(repositoriesRootPathSpec{}) if err != nil { return err } repoDir := path.Join(root, name.Name()) - return r.driver.Delete(ctx, repoDir) + return reg.driver.Delete(ctx, repoDir) } // lessPath returns true if one path a is less than path b.