Skip to content

Commit d8e268c

Browse files
committed
chore: fix linting issue (redundant loop index copy)
Signed-off-by: Frédéric BIDON <fredbi@yahoo.com>
1 parent 48d9a9a commit d8e268c

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

‎jsonname/name_provider.go‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ func NewNameProvider() *NameProvider {
4040

4141
func buildnameIndex(tpe reflect.Type, idx, reverseIdx map[string]string) {
4242
for targetDes := range tpe.Fields() {
43-
targetDes := targetDes
4443

4544
if targetDes.PkgPath != "" { // unexported
4645
continue

0 commit comments

Comments
 (0)