1
0
Fork 0
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:
Matthias Hannig 2019-01-25 10:42:12 +01:00
parent 43182aa59d
commit 0588c5062c

View file

@ -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
}