Skip line if no route headings found yet

This commit is contained in:
Luca 2022-12-26 01:31:56 +01:00
commit 44e24204e5

View file

@ -35,6 +35,11 @@ func update() ([]Route, error) {
continue
}
// skip line if no route headings found yet
if routeHeadings == nil {
continue
}
route := Route{}
for i, s := range parts {
switch routeHeadings[i] {