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 d9539bc commit 1bf6c2f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/generic/generic.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,10 @@ func (v Value) IsNil() bool {
}

func (v Value) direct() any {
ref := reflect.ValueOf(v.Input)
if v.Input == nil {
return ""
return nil
}
ref := reflect.ValueOf(v.Input)
if !ref.IsValid() {
return nil
}
Expand Down

0 comments on commit 1bf6c2f

Please sign in to comment.