Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
hgiasac committed Oct 27, 2024
1 parent 9a515ee commit dafd94f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/decode.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ func (d Decoder) DecodeValue(target any, value any) error {
// fallback to mapstructure decoder.
func (d Decoder) DecodeNullableValue(target any, value any) error {
err := d.decodeValue(target, value)
if err != nil && err != errValueRequired {
if err != nil && !errors.Is(err, errValueRequired) {
return err
}
return nil
Expand Down

0 comments on commit dafd94f

Please sign in to comment.