(fun func(plumbing.Hash) error)
| 174 | } |
| 175 | |
| 176 | func (o *ObjectStorage) ForEachObjectHash(fun func(plumbing.Hash) error) error { |
| 177 | for h := range o.Objects { |
| 178 | err := fun(h) |
| 179 | if err != nil { |
| 180 | if err == storer.ErrStop { |
| 181 | return nil |
| 182 | } |
| 183 | return err |
| 184 | } |
| 185 | } |
| 186 | return nil |
| 187 | } |
| 188 | |
| 189 | func (o *ObjectStorage) ObjectPacks() ([]plumbing.Hash, error) { |
| 190 | return nil, nil |
nothing calls this directly
no outgoing calls
no test coverage detected