diff options
| author | 2026-03-07 00:38:50 +0800 | |
|---|---|---|
| committer | 2026-03-07 00:38:50 +0800 | |
| commit | 474bcba13eddb1ae2fb2fa6340f1c4064cdcf12f (patch) | |
| tree | 96e703836798d9a15e6159cda37f242fa3693f18 /reachability/walk_expand_commits_graph.go | |
| parent | Urgh I made some wrong amends and I'm too tired to separate the commits out t... (diff) | |
| signature | No signature | |
*: Use errors.AsType
Diffstat (limited to 'reachability/walk_expand_commits_graph.go')
| -rw-r--r-- | reachability/walk_expand_commits_graph.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/reachability/walk_expand_commits_graph.go b/reachability/walk_expand_commits_graph.go index 90e52112..9602f35c 100644 --- a/reachability/walk_expand_commits_graph.go +++ b/reachability/walk_expand_commits_graph.go @@ -11,8 +11,7 @@ import ( func (walk *Walk) expandCommitsFromGraph(id objectid.ObjectID) ([]walkItem, bool, error) { pos, err := walk.reachability.graph.Lookup(id) if err != nil { - var notFound *commitgraphread.NotFoundError - if errors.As(err, ¬Found) { + if _, ok := errors.AsType[*commitgraphread.NotFoundError](err); ok { return nil, false, nil } |
