aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/github.com/uudashr
diff options
context:
space:
mode:
authordependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>2024-12-01 01:15:39 +0000
committerTaras Madan <tarasmadan@google.com>2024-12-05 09:05:33 +0000
commit7c3db81921ceea352412011ea6cd8961e7224fb0 (patch)
tree55979369fc4d3319619d0537bc0c1e83dfb7b98f /vendor/github.com/uudashr
parent29f61fceff5d68b408b9086bff96ca036b503584 (diff)
mod: bump github.com/golangci/golangci-lint from 1.62.0 to 1.62.2
Bumps [github.com/golangci/golangci-lint](https://github.com/golangci/golangci-lint) from 1.62.0 to 1.62.2. - [Release notes](https://github.com/golangci/golangci-lint/releases) - [Changelog](https://github.com/golangci/golangci-lint/blob/master/CHANGELOG.md) - [Commits](https://github.com/golangci/golangci-lint/compare/v1.62.0...v1.62.2) --- updated-dependencies: - dependency-name: github.com/golangci/golangci-lint dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com>
Diffstat (limited to 'vendor/github.com/uudashr')
-rw-r--r--vendor/github.com/uudashr/iface/opaque/opaque.go7
1 files changed, 6 insertions, 1 deletions
diff --git a/vendor/github.com/uudashr/iface/opaque/opaque.go b/vendor/github.com/uudashr/iface/opaque/opaque.go
index fda0f001b..f8b7bf4c6 100644
--- a/vendor/github.com/uudashr/iface/opaque/opaque.go
+++ b/vendor/github.com/uudashr/iface/opaque/opaque.go
@@ -53,6 +53,11 @@ func (r *runner) run(pass *analysis.Pass) (interface{}, error) {
return
}
+ if funcDecl.Body == nil {
+ // skip functions without body
+ return
+ }
+
if funcDecl.Type.Results == nil {
// skip functions without return values
return
@@ -133,7 +138,7 @@ func (r *runner) run(pass *analysis.Pass) (interface{}, error) {
typ := pass.TypesInfo.TypeOf(res)
switch typ := typ.(type) {
case *types.Tuple:
- for i := 0; i < typ.Len(); i++ {
+ for i := range typ.Len() {
v := typ.At(i)
vTyp := v.Type()
retStmtTypes[i][vTyp] = struct{}{}