Skip to content

Commit

Permalink
improve code
Browse files Browse the repository at this point in the history
  • Loading branch information
joy999 committed Oct 30, 2023
1 parent ffea80b commit 0d393e6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions util/gconv/gconv_struct.go
Original file line number Diff line number Diff line change
Expand Up @@ -414,8 +414,8 @@ func bindVarToStructAttr(structReflectValue reflect.Value, attrName string, valu
}

// Common interface check.
if err, ok = bindVarToReflectValueWithInterfaceCheck(structFieldValue, value); ok {
return err
if err, ok = bindVarToReflectValueWithInterfaceCheck(structFieldValue, value); ok || err != nil {
return
}

// Default converting.
Expand Down

0 comments on commit 0d393e6

Please sign in to comment.