Fixed unparam complaints
This commit is contained in:
parent
9f54617e6e
commit
656645b4d0
@ -13,5 +13,4 @@ linters:
|
|||||||
- gocyclo
|
- gocyclo
|
||||||
- maligned
|
- maligned
|
||||||
- scopelint
|
- scopelint
|
||||||
- stylecheck
|
- stylecheck
|
||||||
- unparam
|
|
@ -287,7 +287,7 @@ func renderSliceField(b *strings.Builder, field reflect.StructField, idPrefix st
|
|||||||
|
|
||||||
arrayObj := fieldValue.Index(sliceIndex).Interface()
|
arrayObj := fieldValue.Index(sliceIndex).Interface()
|
||||||
arrayIDPrefix := fmt.Sprintf("%s[%d].", field.Name, sliceIndex)
|
arrayIDPrefix := fmt.Sprintf("%s[%d].", field.Name, sliceIndex)
|
||||||
RenderObject(b, arrayObj, arrayIDPrefix)
|
RenderObject(b, arrayObj, idPrefix+arrayIDPrefix)
|
||||||
|
|
||||||
// Preview
|
// Preview
|
||||||
// elementValue := fieldValue.Index(sliceIndex)
|
// elementValue := fieldValue.Index(sliceIndex)
|
||||||
|
Loading…
Reference in New Issue
Block a user