remove protocol correctness test

This is checked when the protocol is *registered*. There's no reason to test it
twice.
This commit is contained in:
Steven Allen 2018-10-01 15:45:43 -07:00
parent 2999d4efba
commit 6c70a3d7b5

View File

@ -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)