Skip to content

Commit

Permalink
Use integer range
Browse files Browse the repository at this point in the history
  • Loading branch information
uudashr committed Nov 18, 2024
1 parent 05835ea commit a98f7a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion opaque/opaque.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{}{}
Expand Down

0 comments on commit a98f7a5

Please sign in to comment.