Skip to content

Commit

Permalink
Add missing error
Browse files Browse the repository at this point in the history
  • Loading branch information
sam boyer committed Jul 13, 2023
1 parent 8070bba commit 7a42ffc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion vmux/typed.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,9 @@ func NewTypedMux[T thema.Assignee](sch thema.TypedSchema[T], dec Decoder) TypedM
if inst, ierr := isch.Validate(v); ierr == nil {
trinst, lac, err := inst.Translate(sch.Version())
if err != nil {

return nil, nil, err
}

// TODO perf: introduce a typed translator to avoid wastefully re-binding the go type every time
tinst, err := thema.BindInstanceType(trinst, sch)
if err != nil {
Expand Down

0 comments on commit 7a42ffc

Please sign in to comment.