diff options
Diffstat (limited to 'internal/commitquery/oid.go')
| -rw-r--r-- | internal/commitquery/oid.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/internal/commitquery/oid.go b/internal/commitquery/oid.go index 7ba05eb5..ab40f96e 100644 --- a/internal/commitquery/oid.go +++ b/internal/commitquery/oid.go @@ -53,8 +53,7 @@ func (ctx *Context) loadByOID(idx NodeIndex) error { if ctx.graph != nil { pos, err := ctx.graph.Lookup(id) if err != nil { - var notFound *commitgraphread.NotFoundError - if !stderrors.As(err, ¬Found) { + if _, ok := stderrors.AsType[*commitgraphread.NotFoundError](err); !ok { return err } } else { |
