From f2922155de01b734e3e8b3f50be8f263ec13cacd Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Fri, 6 Mar 2026 18:38:44 +0800 Subject: *: Lint --- format/commitgraph/read/edges.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'format/commitgraph/read/edges.go') 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]) -- cgit v1.3.1-10-gc9f91