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,11 +143,11 @@ func add(nd *node, route string, item interface{}) error {
}
return ErrInvalidState
} else {
child := newNode(nil)
children[token] = child
return add(child, route[i+1:], item)
}
child := newNode(nil)
children[token] = child
return add(child, route[i+1:], item)
}
}

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

Loading…
Cancel
Save