Wrong converstion

This commit is contained in:
Travis
2013-01-16 01:20:08 -08:00
parent 66b2dca792
commit f271765a17

View File

@@ -264,8 +264,8 @@ func getRoute(host string) (*Route, error) {
rx2 := []byte(rx.(string))
route := Route{}
err = json.Unmarshal(rx2, &route)
if err == nil {
route = rx.(Route)
if err != nil {
return nil, err
}
return &route, err
}