From b279c7e4dc798b4c8055af8e974edbc8973d4537 Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Sat, 7 Mar 2026 23:35:28 +0800 Subject: format/pack/ingest: Use Options; don't require EOF --- format/pack/ingest/thin_fix.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'format/pack/ingest/thin_fix.go') diff --git a/format/pack/ingest/thin_fix.go b/format/pack/ingest/thin_fix.go index f21ef98a..cdee8748 100644 --- a/format/pack/ingest/thin_fix.go +++ b/format/pack/ingest/thin_fix.go @@ -12,11 +12,11 @@ func maybeFixThin(state *ingestState) error { return nil } - if !state.fixThin { + if !state.opts.FixThin { return &ThinPackUnresolvedError{Count: len(state.unresolvedRefDeltas)} } - if state.base == nil { + if state.opts.Base == nil { return &ThinPackUnresolvedError{Count: len(state.unresolvedRefDeltas)} } @@ -48,7 +48,7 @@ func maybeFixThin(state *ingestState) error { baseIDs := unresolvedThinBaseIDs(state) for _, id := range baseIDs { - ty, content, err := state.base.ReadBytesContent(id) + ty, content, err := state.opts.Base.ReadBytesContent(id) if err != nil { continue } -- cgit v1.3.1-10-gc9f91