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/drain.go | |
| parent | object{,/type}: Fix up API shape (diff) | |
| signature | No signature | |
object/type, format/packfile: API cleanups
Diffstat (limited to 'format/packfile/ingest/drain.go')
| -rw-r--r-- | format/packfile/ingest/drain.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/format/packfile/ingest/drain.go b/format/packfile/ingest/drain.go index aa96db8a..7179a823 100644 --- a/format/packfile/ingest/drain.go +++ b/format/packfile/ingest/drain.go @@ -4,7 +4,6 @@ import ( "fmt" "io" - packfmt "codeberg.org/lindenii/furgit/format/packfile" "codeberg.org/lindenii/furgit/internal/compress/zlib" objectheader "codeberg.org/lindenii/furgit/object/header" objectid "codeberg.org/lindenii/furgit/object/id" @@ -25,7 +24,7 @@ func drainEntryPayload(state *ingestState, record objectRecord) (int64, objectid var total int64 - if packfmt.IsBaseObjectType(record.packedType) { + if record.packedType.IsBaseObject() { header, ok := objectheader.Encode(record.packedType, record.declaredSize) if !ok { return 0, zero, &MalformedPackEntryError{Offset: record.offset, Reason: "encode object header"} |
