From a98f7a587349b6aa13676b9cbe2fa6b21fc7ecb0 Mon Sep 17 00:00:00 2001 From: Nuruddin Ashr Date: Mon, 18 Nov 2024 11:41:27 +0700 Subject: [PATCH] Use integer range --- opaque/opaque.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/opaque/opaque.go b/opaque/opaque.go index fda0f00..e617c75 100644 --- a/opaque/opaque.go +++ b/opaque/opaque.go @@ -133,7 +133,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{}{}