Skip to content

Commit

Permalink
Thinko.
Browse files Browse the repository at this point in the history
  • Loading branch information
bobg committed Apr 11, 2023
1 parent 70cc1fb commit 2489332
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion decouple.go
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ func (ch Checker) CheckParam(pkg *packages.Package, fndecl *ast.FuncDecl, name *
}
}

if len(a.objmethods) > 1 {
if len(a.objmethods) > 0 {
if len(a.methods) < len(a.objmethods) {
// A smaller interface will do.
return a.methods, nil
Expand Down

0 comments on commit 2489332

Please sign in to comment.