mirror of
https://github.com/bettercap/bettercap
synced 2025-08-20 21:43:18 -07:00
Merge pull request #1005 from elleuc4/route_headings_fix
Skip line processing if routing headings weren't found yet.
This commit is contained in:
commit
924ff5753d
1 changed files with 5 additions and 0 deletions
|
@ -35,6 +35,11 @@ func update() ([]Route, error) {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// skip line if no route headings found yet
|
||||||
|
if routeHeadings == nil {
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
|
||||||
route := Route{}
|
route := Route{}
|
||||||
for i, s := range parts {
|
for i, s := range parts {
|
||||||
switch routeHeadings[i] {
|
switch routeHeadings[i] {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue