makefile: switched to golangci-lint

This commit is contained in:
Michał Matczuk committed 2018-07-28 06:54:20 +02:00
1 parent a9f91f5f4b
commit 47c22c9fd2
2 files changed
+28 -25

No files matched your search

+1 -1
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 {