Enabled errcheck linter

This commit is contained in:
Eduard Urbach 2019-06-07 10:05:28 +09:00
parent f464e830bf
commit 9f54617e6e
Signed by: akyoto
GPG Key ID: C874F672B1AF20C0
2 changed files with 1 additions and 1 deletions

View File

@ -6,7 +6,6 @@ linters:
enable-all: true enable-all: true
disable: disable:
- dupl - dupl
- errcheck
- lll - lll
- goconst - goconst
- gochecknoglobals - gochecknoglobals

View File

@ -186,6 +186,7 @@ func RenderField(b *strings.Builder, v *reflect.Value, field reflect.StructField
} }
// String field // String field
// nolint:errcheck
func renderStringField(b io.StringWriter, v *reflect.Value, field reflect.StructField, idPrefix string, fieldValue reflect.Value) { func renderStringField(b io.StringWriter, v *reflect.Value, field reflect.StructField, idPrefix string, fieldValue reflect.Value) {
idType := field.Tag.Get("idType") idType := field.Tag.Get("idType")