aboutsummaryrefslogtreecommitdiff
path: root/format/packfile/ingest/drain.go
diff options
context:
space:
mode:
Diffstat (limited to 'format/packfile/ingest/drain.go')
-rw-r--r--format/packfile/ingest/drain.go3
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"}