diff options
| author | 2025-11-16 00:00:00 +0000 | |
|---|---|---|
| committer | 2025-11-16 00:00:00 +0000 | |
| commit | b6d4ab71d42234a4ae2678083d1b7558b8e6519f (patch) | |
| tree | 993c8a56ee9b2a72237e29cbf41767d4986c2fc5 /pack_idx.go | |
| parent | hash: Make fewer helper functions need explicit hash length fields (diff) | |
| signature | ||
Make the API more consistent
Diffstat (limited to 'pack_idx.go')
| -rw-r--r-- | pack_idx.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/pack_idx.go b/pack_idx.go index d313825f..7547777d 100644 --- a/pack_idx.go +++ b/pack_idx.go @@ -106,11 +106,11 @@ func (pi *packIndex) load() error { return nil } -func (r *Repository) packIndexes() ([]*packIndex, error) { - r.packIdxOnce.Do(func() { - r.packIdx, r.packIdxErr = r.loadPackIndexes() +func (repo *Repository) packIndexes() ([]*packIndex, error) { + repo.packIdxOnce.Do(func() { + repo.packIdx, repo.packIdxErr = repo.loadPackIndexes() }) - return r.packIdx, r.packIdxErr + return repo.packIdx, repo.packIdxErr } func (repo *Repository) loadPackIndexes() ([]*packIndex, error) { |
