tape: DecodeAny only returns an error when there is one

This commit is contained in:
Sasha Koshka 2025-06-27 14:03:49 -04:00
parent b174015319
commit aa718cfe9f

View File

@ -156,8 +156,10 @@ func decodeAny(decoder *Decoder, destination reflect.Value, tag Tag) (n int, err
n += nn; if err != nil { return n, err }
table.SetMapIndex(reflect.ValueOf(key), value)
}
default:
return n, fmt.Errorf("unknown TN %d", tag.TN())
}
return n, fmt.Errorf("unknown TN %d", tag.TN())
return n, nil
}
// TagAny returns the correct tag for an "any" value. Returns an error if the