diff options
| author | 2026-03-29 11:05:46 +0000 | |
|---|---|---|
| committer | 2026-03-29 11:05:46 +0000 | |
| commit | 0109f0903d8e18d110d6b9456f9a1fb4501e62fc (patch) | |
| tree | f1b95c7c64d79fa0dab0251661600a299d8aefcb /format/packfile/ingest/record_content.go | |
| parent | object{,/type}: Fix up API shape (diff) | |
| signature | No signature | |
object/type, format/packfile: API cleanups
Diffstat (limited to 'format/packfile/ingest/record_content.go')
| -rw-r--r-- | format/packfile/ingest/record_content.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/format/packfile/ingest/record_content.go b/format/packfile/ingest/record_content.go index 4f8787ea..c66a1234 100644 --- a/format/packfile/ingest/record_content.go +++ b/format/packfile/ingest/record_content.go @@ -3,14 +3,13 @@ package ingest import ( "fmt" - packfmt "codeberg.org/lindenii/furgit/format/packfile" objecttype "codeberg.org/lindenii/furgit/object/type" ) // readBaseRecordContent reads canonical base content for one non-delta record. func readBaseRecordContent(state *ingestState, idx int) (objecttype.Type, []byte, error) { record := state.records[idx] - if !packfmt.IsBaseObjectType(record.packedType) { + if !record.packedType.IsBaseObject() { return objecttype.TypeInvalid, nil, fmt.Errorf("packfile/ingest: record %d is not a base object", idx) } |
