remove redundant trim op, comment update

pull/2/head
Joseph Poirier 2015-08-09 17:51:23 -05:00
rodzic 1939dfa77d
commit 8f4312311d
1 zmienionych plików z 8 dodań i 9 usunięć

Wyświetl plik

@ -133,8 +133,7 @@ func heartBeatSender() {
}
func parseInput(buf string) ([]byte, uint16) {
buf = strings.Trim(buf, "\r\n") // Remove newlines.
x := strings.Split(buf, ";") // We want to discard everything before the first ';'.
x := strings.Split(buf, ";") // Discard everything after the first ';'.
if len(x) == 0 {
return nil, 0
}