makefile: switched to golangci-lint

This commit is contained in:
Michał Matczuk
2018-07-28 06:41:33 +02:00
parent a9f91f5f4b
commit 47c22c9fd2
2 changed files with 28 additions and 25 deletions

View File

@@ -167,7 +167,7 @@ func (m *Mapper) FieldsByName(v reflect.Value, names []string) []reflect.Value {
// to a struct. Returns empty int slice for each name not found.
func (m *Mapper) TraversalsByName(t reflect.Type, names []string) [][]int {
r := make([][]int, 0, len(names))
m.TraversalsByNameFunc(t, names, func(_ int, i []int) error {
m.TraversalsByNameFunc(t, names, func(_ int, i []int) error { // nolint
if i == nil {
r = append(r, []int{})
} else {