Remove unnecessary uint8 conversion

This commit is contained in:
Justin Nuß 2015-10-06 06:32:01 +02:00
parent c9fdfdd500
commit 95d129f7d8
1 changed files with 1 additions and 1 deletions

View File

@ -145,7 +145,7 @@ func (p *parser) recvMsg() (pf payloadFormat, msg []byte, err error) {
return 0, nil, err
}
hdr.T = payloadFormat(uint8(buf[0]))
hdr.T = payloadFormat(buf[0])
hdr.Length = binary.BigEndian.Uint32(buf[1:])
if hdr.Length == 0 {