fix(reflectutil): correct pointer type check in dereference logic

This commit is contained in:
2026-06-26 00:27:25 +02:00
parent 1cd9cd8803
commit 651c7aa3f4
2 changed files with 13 additions and 8 deletions
+1 -1
View File
@@ -8,7 +8,7 @@ import (
// Deref dereferences pointers until it reaches a non-pointer value
// Returns the dereferenced value and true if successful, or the original value and false if nil
func Deref(v reflect.Value) (reflect.Value, bool) {
for v.Kind() == reflect.Ptr {
for v.Kind() == reflect.Pointer {
if v.IsNil() {
return v, false
}