Skip to content

Commit d8db858

Browse files
authored
Merge pull request #2 from uudashr/remove-deprecated-linter
Remove exportloopref linter
2 parents 36df115 + a98f7a5 commit d8db858

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

.golangci.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ linters:
2626
- errname
2727
- errorlint
2828
- exhaustive
29-
- exportloopref
3029
- fatcontext
3130
- gci
3231
- ginkgolinter

opaque/opaque.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ func (r *runner) run(pass *analysis.Pass) (interface{}, error) {
133133
typ := pass.TypesInfo.TypeOf(res)
134134
switch typ := typ.(type) {
135135
case *types.Tuple:
136-
for i := 0; i < typ.Len(); i++ {
136+
for i := range typ.Len() {
137137
v := typ.At(i)
138138
vTyp := v.Type()
139139
retStmtTypes[i][vTyp] = struct{}{}

0 commit comments

Comments
 (0)