diff --git a/namespace/repo.go b/namespace/repo.go index 3dd7cb52..65668026 100644 --- a/namespace/repo.go +++ b/namespace/repo.go @@ -168,7 +168,7 @@ func (r *Repo) repo(ctx context.Context) (eh.ReadWriteRepo, error) { // Perform an additional existence check within the write lock in the // unlikely event that someone else added the repo right before us. - if _, ok := r.repos[ns]; !ok { + if repo, ok = r.repos[ns]; !ok { var err error repo, err = r.newRepo(ns)