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/parents.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'format/commitgraph/read/parents.go') diff --git a/format/commitgraph/read/parents.go b/format/commitgraph/read/parents.go index 0f8024ab..fcaad8b6 100644 --- a/format/commitgraph/read/parents.go +++ b/format/commitgraph/read/parents.go @@ -35,7 +35,7 @@ func (reader *Reader) decodeParents(layer *layer, p1, p2 uint32) (ParentRef, Par } if len(parents) == 0 { - return ParentRef{}, ParentRef{}, nil, &ErrMalformed{Path: layer.path, Reason: "empty EDGE list"} + return ParentRef{}, ParentRef{}, nil, &MalformedError{Path: layer.path, Reason: "empty EDGE list"} } parent2 := ParentRef{Valid: true, Pos: parents[0]} @@ -52,7 +52,7 @@ func (reader *Reader) decodeSingleParent(raw uint32) (ParentRef, error) { } if raw&commitgraph.ParentExtraMask != 0 { - return ParentRef{}, &ErrMalformed{ + return ParentRef{}, &MalformedError{ Path: "commit-graph", Reason: "unexpected EDGE marker in single-parent slot", } -- cgit v1.3.1-10-gc9f91