fix(Assert): swap reflect.Ptr to the new reflect.Pointer

This commit is contained in:
2025-01-03 13:58:55 +01:00
parent 29270855f8
commit 10983035db
2 changed files with 2 additions and 2 deletions

View File

@@ -26,7 +26,7 @@ func file_func_line() (string, string, int) {
func IsNillable(kind reflect.Kind) bool {
switch kind {
// based on reflect/type.go -> Kind
case reflect.Ptr, reflect.Chan, reflect.Func, reflect.Interface, reflect.Map, reflect.Slice, reflect.UnsafePointer:
case reflect.Pointer, reflect.Chan, reflect.Func, reflect.Interface, reflect.Map, reflect.Slice, reflect.UnsafePointer:
return true
default:
return false