lint fix
Signed-off-by: Manish Tomar <manish.tomar@docker.com>
This commit is contained in:
parent
e4d5a0a17c
commit
8c05756141
@ -72,13 +72,13 @@ func (reg *registry) Enumerate(ctx context.Context, ingester func(string) error)
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Remove removes a repository from storage
|
// 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{})
|
root, err := pathFor(repositoriesRootPathSpec{})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
repoDir := path.Join(root, name.Name())
|
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.
|
// lessPath returns true if one path a is less than path b.
|
||||||
|
Loading…
Reference in New Issue
Block a user