makefile: switched to golangci-lint
This commit is contained in:
1 parent
a9f91f5f4b
commit
47c22c9fd2
2 files changed
+28
-25
No files matched your search
+1
-1
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user