fix golint issues (#459)

master
Kevin Wan 4 years ago committed by GitHub
parent 03b5fd4a10
commit 211f3050e9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -143,13 +143,13 @@ func add(nd *node, route string, item interface{}) error {
} }
return ErrInvalidState return ErrInvalidState
} else { }
child := newNode(nil) child := newNode(nil)
children[token] = child children[token] = child
return add(child, route[i+1:], item) return add(child, route[i+1:], item)
} }
} }
}
children := nd.getChildren(route) children := nd.getChildren(route)
if child, ok := children[route]; ok { if child, ok := children[route]; ok {

@ -217,18 +217,18 @@ func unmarshalRows(v interface{}, scanner rowsScanner, strict bool) error {
if err := scanner.Scan(values...); err != nil { if err := scanner.Scan(values...); err != nil {
return err return err
} else {
appendFn(value)
} }
appendFn(value)
} }
default: default:
return ErrUnsupportedValueType return ErrUnsupportedValueType
} }
return nil return nil
} else {
return ErrNotSettable
} }
return ErrNotSettable
default: default:
return ErrUnsupportedValueType return ErrUnsupportedValueType
} }

Loading…
Cancel
Save