diff options
| author | 2026-03-06 18:38:44 +0800 | |
|---|---|---|
| committer | 2026-03-06 18:58:30 +0800 | |
| commit | f2922155de01b734e3e8b3f50be8f263ec13cacd (patch) | |
| tree | 6dcfcf5689e63eea09314dce543e1de26cab89fe /format/pack/ingest/trailer.go | |
| parent | internal/compress: Format (diff) | |
| signature | No signature | |
*: Lint v0.1.68
Diffstat (limited to 'format/pack/ingest/trailer.go')
| -rw-r--r-- | format/pack/ingest/trailer.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/format/pack/ingest/trailer.go b/format/pack/ingest/trailer.go index 4dba3884..ea945b10 100644 --- a/format/pack/ingest/trailer.go +++ b/format/pack/ingest/trailer.go @@ -20,7 +20,7 @@ func (scanner *streamScanner) finishAndFlushTrailer() error { err := scanner.readFull(trailer) if err != nil { - return &ErrPackTrailerMismatch{} + return &PackTrailerMismatchError{} } scanner.packTrailer = append(scanner.packTrailer[:0], trailer...) @@ -38,7 +38,7 @@ func (scanner *streamScanner) finishAndFlushTrailer() error { computed := scanner.hash.Sum(nil) if !bytes.Equal(computed, trailer) { - return &ErrPackTrailerMismatch{} + return &PackTrailerMismatchError{} } return nil |
