diff --git a/codec.go b/codec.go index 1f912f8..9c0c5bc 100644 --- a/codec.go +++ b/codec.go @@ -43,9 +43,6 @@ func stringToBytes(s string) ([]byte, error) { sp = []string{"/" + strings.Join(sp, "/")} } - if p.Transcoder == nil { - return nil, fmt.Errorf("no transcoder for %s protocol", p.Name) - } a, err := p.Transcoder.StringToBytes(sp[0]) if err != nil { return nil, fmt.Errorf("failed to parse %s: %s %s", p.Name, sp[0], err)