Remove reference to deprecated invalidType data type.

This commit is contained in:
scruzin 2019-01-12 17:53:02 +10:30
parent cb2ea08fff
commit 5505edab5a
1 changed files with 0 additions and 4 deletions

View File

@ -264,10 +264,6 @@ func EncodeNamedBoolean(buf []byte, key string, val bool) ([]byte, error) {
// PropEncode encodes a property. // PropEncode encodes a property.
func PropEncode(p *Property, buf []byte) ([]byte, error) { func PropEncode(p *Property, buf []byte) ([]byte, error) {
if p.Type == typeInvalid {
return nil, ErrShortBuffer
}
if p.Type != TypeNull && len(p.Name)+2+1 >= len(buf) { if p.Type != TypeNull && len(p.Name)+2+1 >= len(buf) {
return nil, ErrShortBuffer return nil, ErrShortBuffer
} }