Fixed unparam complaints

This commit is contained in:
Eduard Urbach 2019-06-07 10:31:21 +09:00
parent 9f54617e6e
commit 656645b4d0
Signed by: akyoto
GPG Key ID: C874F672B1AF20C0
2 changed files with 2 additions and 3 deletions

View File

@ -13,5 +13,4 @@ linters:
- gocyclo
- maligned
- scopelint
- stylecheck
- unparam
- stylecheck

View File

@ -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)