Skip to content

Commit

Permalink
Merge pull request #17 from Clarilab/fix/namespace-repo-nil
Browse files Browse the repository at this point in the history
fix: fix nil-pointer in namespace repo getter
  • Loading branch information
MaxBreida authored Oct 14, 2024
2 parents df18e65 + 9e60682 commit 8a486c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion namespace/repo.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 8a486c9

Please sign in to comment.