Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
arajasek committed Jul 18, 2022
1 parent 0bded20 commit f4f3f0e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ func (e *respError) Error() string {
return e.Message
}

var marsharableRT = reflect.TypeOf(new(marshalable)).Elem()
var marshalableRT = reflect.TypeOf(new(marshalable)).Elem()

func (e *respError) val(errors *Errors) reflect.Value {
if errors != nil {
Expand All @@ -74,7 +74,7 @@ func (e *respError) val(errors *Errors) reflect.Value {
} else {
v = reflect.New(t)
}
if len(e.Meta) > 0 && v.Type().Implements(marsharableRT) {
if len(e.Meta) > 0 && v.Type().Implements(marshalableRT) {
_ = v.Interface().(marshalable).UnmarshalJSON(e.Meta)
}
if t.Kind() != reflect.Ptr {
Expand Down

0 comments on commit f4f3f0e

Please sign in to comment.