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