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

@ -14,4 +14,3 @@ linters:
- maligned - maligned
- scopelint - scopelint
- stylecheck - stylecheck
- unparam

View File

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