linting fixes

Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
2019-12-03 22:59:44 +03:00
parent 7d5bdcf993
commit a1eaf9cc20
41 changed files with 76 additions and 80 deletions

View File

@@ -29,10 +29,11 @@ func flatten(n network.Node, visited map[string]bool) []network.Node {
}
// create new list of nodes
//nolint:prealloc
var nodes []network.Node
// check if already visited
if visited[n.Id()] == false {
if !visited[n.Id()] {
// append the current node
nodes = append(nodes, n)
}