mirror of
https://github.com/alice-lg/birdwatcher.git
synced 2025-03-09 00:00:05 +01:00
fixed type assertation
This commit is contained in:
parent
43182aa59d
commit
0588c5062c
1 changed files with 1 additions and 1 deletions
|
@ -281,7 +281,7 @@ func RoutesProto(protocol string) (Parsed, bool) {
|
|||
// Get all routes
|
||||
data, fromCache := RoutesProtoAll(protocol)
|
||||
|
||||
routes, ok := data["routes"].([]interface{})
|
||||
routes, ok := data["routes"].([]Parsed)
|
||||
if !ok {
|
||||
return NilParse, false
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue