clean
This commit is contained in:
@@ -36,20 +36,6 @@ func parseArrOrDep(telegram *Telegram, data string) {
|
||||
* (ARR-CSN3126/A5040-ZSPD-ZBTJ1601)
|
||||
* (DEP-CSN3125/A4553-ZGHA0554-ZBTJ-DOF/120820)
|
||||
*/
|
||||
//values := getSplitValues(data)
|
||||
//l := len(values)
|
||||
//if l < 4 {
|
||||
// telegram.ParseErrors = append(telegram.ParseErrors, errors.New("arrival data less than 4 "))
|
||||
// return
|
||||
//}
|
||||
//
|
||||
//telegram.FlightNumber, telegram.RegisterNumber = parseFlight(values[1])
|
||||
//telegram.Departure, telegram.DepartureTime = parseAirportAndTime(values[2])
|
||||
//telegram.Destination, telegram.DestinationTime = parseAirportAndTime(values[3])
|
||||
//if l == 5 {
|
||||
// parseDof(telegram, values[4])
|
||||
//}
|
||||
//fmt.Println(CompositeDepArr)
|
||||
fields := getFields(CompositeDepArr, data)
|
||||
if len(fields) < 1 {
|
||||
telegram.ParseErrors = append(telegram.ParseErrors, errors.New("arrival data less than 4 "))
|
||||
|
||||
Reference in New Issue
Block a user