diff options
| author | 2026-03-06 18:38:44 +0800 | |
|---|---|---|
| committer | 2026-03-06 18:58:30 +0800 | |
| commit | f2922155de01b734e3e8b3f50be8f263ec13cacd (patch) | |
| tree | 6dcfcf5689e63eea09314dce543e1de26cab89fe /format/commitgraph/read/edges.go | |
| parent | internal/compress: Format (diff) | |
| signature | No signature | |
*: Lint v0.1.68
Diffstat (limited to 'format/commitgraph/read/edges.go')
| -rw-r--r-- | format/commitgraph/read/edges.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/format/commitgraph/read/edges.go b/format/commitgraph/read/edges.go index de8bab60..96ffeb6d 100644 --- a/format/commitgraph/read/edges.go +++ b/format/commitgraph/read/edges.go @@ -9,7 +9,7 @@ import ( func (reader *Reader) decodeExtraEdgeList(layer *layer, edgeStart uint32) ([]Position, error) { if len(layer.chunkExtraEdges) == 0 { - return nil, &ErrMalformed{Path: layer.path, Reason: "missing EDGE chunk"} + return nil, &MalformedError{Path: layer.path, Reason: "missing EDGE chunk"} } out := make([]Position, 0) @@ -24,7 +24,7 @@ func (reader *Reader) decodeExtraEdgeList(layer *layer, edgeStart uint32) ([]Pos } if off+4 > len(layer.chunkExtraEdges) { - return nil, &ErrMalformed{Path: layer.path, Reason: "EDGE index out of range"} + return nil, &MalformedError{Path: layer.path, Reason: "EDGE index out of range"} } word := binary.BigEndian.Uint32(layer.chunkExtraEdges[off : off+4]) |
