diff options
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) } |
