libnmdc: avoid meaningless cast

This commit is contained in:
mappu 2016-04-03 18:35:11 +12:00
parent e111c99886
commit d391159abe

View File

@ -380,7 +380,7 @@ func (this *HubConnection) worker() {
} }
protocolMessage := rx_protocolMessage.FindString(fullBuffer) protocolMessage := rx_protocolMessage.FindString(fullBuffer)
if len(protocolMessage) > 0 { if len(protocolMessage) > 0 {
this.processProtocolMessage(string(protocolMessage)) this.processProtocolMessage(protocolMessage)
fullBuffer = fullBuffer[len(protocolMessage):] fullBuffer = fullBuffer[len(protocolMessage):]
} else { } else {
break break