From 32ec09c03efccec15e4ff479e3bf363ae2216bfb Mon Sep 17 00:00:00 2001 From: "Hoonmin Kim (Micah)" Date: Sun, 24 Sep 2023 23:51:01 +0000 Subject: [PATCH] Update mockgen/parse.go Co-authored-by: Jacob Oaks --- mockgen/parse.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mockgen/parse.go b/mockgen/parse.go index cc36039..f43321c 100644 --- a/mockgen/parse.go +++ b/mockgen/parse.go @@ -232,7 +232,7 @@ func (p *fileParser) parseFile(importPath string, file *ast.File) (*model.Packag continue } i, err := p.parseInterface(ni.name.String(), importPath, ni) - if err == errIgnore { + if errors.Is(err, errConstraintInterface) { continue } if err != nil {