Some linter errors.

This commit is contained in:
go-jet 2019-10-18 10:09:56 +02:00
parent 947d2df47e
commit 0b00a6b12c
4 changed files with 12 additions and 7 deletions

View file

@ -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()