Some linter errors.
This commit is contained in:
parent
947d2df47e
commit
0b00a6b12c
4 changed files with 12 additions and 7 deletions
|
|
@ -212,9 +212,7 @@ func (s *scanContext) rowElem(index int) interface{} {
|
|||
|
||||
valuer, ok := s.row[index].(driver.Valuer)
|
||||
|
||||
if !ok {
|
||||
panic("jet: internal error, scan value doesn't implement driver.Valuer")
|
||||
}
|
||||
utils.MustBeTrue(ok, "jet: internal error, scan value doesn't implement driver.Valuer")
|
||||
|
||||
value, err := valuer.Value()
|
||||
|
||||
|
|
|
|||
|
|
@ -50,9 +50,8 @@ func getSliceElemPtrAt(slicePtrValue reflect.Value, index int) reflect.Value {
|
|||
}
|
||||
|
||||
func appendElemToSlice(slicePtrValue reflect.Value, objPtrValue reflect.Value) error {
|
||||
if slicePtrValue.IsNil() {
|
||||
panic("jet: internal, slice is nil")
|
||||
}
|
||||
utils.MustBeTrue(!slicePtrValue.IsNil(), "jet: internal, slice is nil")
|
||||
|
||||
sliceValue := slicePtrValue.Elem()
|
||||
sliceElemType := sliceValue.Type().Elem()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue