mirror of https://bitbucket.org/ausocean/av.git
Remove reference to deprecated invalidType data type.
This commit is contained in:
parent
cb2ea08fff
commit
5505edab5a
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue