Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
iesreza committed Mar 12, 2024
1 parent b8c34ae commit 72a63d6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/generic/generic.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,10 +85,11 @@ func (v Value) direct() any {
return nil
}
if ref.Type().Kind() == reflect.Ptr {
ref = ref.Elem()
if ref.IsZero() {
return nil
}
ref = ref.Elem()

return ref.Interface()
}
return v.Input
Expand Down

0 comments on commit 72a63d6

Please sign in to comment.