From 44e24204e589721bf2f03ca803c4887a6f39646a Mon Sep 17 00:00:00 2001 From: Luca Date: Mon, 26 Dec 2022 01:31:56 +0100 Subject: [PATCH] Skip line if no route headings found yet --- routing/update_linux.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/routing/update_linux.go b/routing/update_linux.go index da4a6475..d4290f63 100644 --- a/routing/update_linux.go +++ b/routing/update_linux.go @@ -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] {