Skip to content

Commit

Permalink
Merge pull request #2 from uudashr/remove-deprecated-linter
Browse files Browse the repository at this point in the history
Remove exportloopref linter
  • Loading branch information
uudashr authored Nov 18, 2024
2 parents 36df115 + a98f7a5 commit d8db858
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ linters:
- errname
- errorlint
- exhaustive
- exportloopref
- fatcontext
- gci
- ginkgolinter
Expand Down
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 d8db858

Please sign in to comment.