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 229f63e commit d9539bc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/generic/generic.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,9 @@ func (v Value) IsNil() bool {

func (v Value) direct() any {
ref := reflect.ValueOf(v.Input)
if v.Input == nil {
return ""
}
if !ref.IsValid() {
return nil
}
Expand All @@ -101,7 +104,6 @@ func (v Value) ParseJSON(in any) error {
// @receiver v
// @return string
func (v Value) String() string {
fmt.Println("======>", v)
var value = v.direct()
return fmt.Sprint(value)
}
Expand Down

0 comments on commit d9539bc

Please sign in to comment.