lint fixes (#14)
* lint fixes Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
		| @@ -72,10 +72,11 @@ func (wh *webHandler) getService(r *http.Request) (string, error) { | ||||
| 	} | ||||
|  | ||||
| 	// get the nodes | ||||
| 	var nodes []*registry.Node | ||||
| 	nodes := make([]*registry.Node, 0, len(service.Services)) | ||||
| 	for _, srv := range service.Services { | ||||
| 		nodes = append(nodes, srv.Nodes...) | ||||
| 	} | ||||
|  | ||||
| 	if len(nodes) == 0 { | ||||
| 		return "", errors.New("no route found") | ||||
| 	} | ||||
|   | ||||
		Reference in New Issue
	
	Block a user