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