diff options
| author | 2026-03-29 15:43:50 +0000 | |
|---|---|---|
| committer | 2026-03-29 15:45:18 +0000 | |
| commit | f50ac551c56569e109a8350f27dab53bb2378d4d (patch) | |
| tree | 0d48976ffaab3455c0c26e2840cb88d2c8d4a3d4 /repository/refs.go | |
| parent | ci: Disable dupl (diff) | |
| signature | No signature | |
*: Remove Close from object/ref store interfaces
At places where you own the object, you should have the literal
implementation with Close. If you're using it via the interface, then
you probably don't own that store, and you shouldn't be closing it.
Thanks to Michael Muré from git-bug for this point.
Diffstat (limited to 'repository/refs.go')
| -rw-r--r-- | repository/refs.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/repository/refs.go b/repository/refs.go index 0403e001..17816168 100644 --- a/repository/refs.go +++ b/repository/refs.go @@ -8,7 +8,7 @@ import refstore "codeberg.org/lindenii/furgit/ref/store" // A common pattern is to resolve a reference first and then pass the resulting // object ID to [Repository.Fetcher] or [Repository.Objects]. // -// Labels: Life-Parent, Close-No. +// Labels: Life-Parent. // //nolint:ireturn func (repo *Repository) Refs() refstore.ReadWriteStore { |
