mirror of
https://github.com/fnproject/fn.git
synced 2022-10-28 21:29:17 +03:00
Wrong converstion
This commit is contained in:
@@ -264,8 +264,8 @@ func getRoute(host string) (*Route, error) {
|
|||||||
rx2 := []byte(rx.(string))
|
rx2 := []byte(rx.(string))
|
||||||
route := Route{}
|
route := Route{}
|
||||||
err = json.Unmarshal(rx2, &route)
|
err = json.Unmarshal(rx2, &route)
|
||||||
if err == nil {
|
if err != nil {
|
||||||
route = rx.(Route)
|
return nil, err
|
||||||
}
|
}
|
||||||
return &route, err
|
return &route, err
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user