etcdserver/api/v2discovery: simplify !(x == y) to x != y

Found using https://go-critic.github.io/overview#boolExprSimplify-ref
release-3.4
Iskander Sharipov 2018-07-28 23:47:17 +03:00
parent 90a2fbe50e
commit d0f800c930
1 changed files with 1 additions and 1 deletions

View File

@ -275,7 +275,7 @@ func (d *discovery) checkCluster() ([]*client.Node, int, uint64, error) {
var nodes []*client.Node
// append non-config keys to nodes
for _, n := range resp.Node.Nodes {
if !(path.Base(n.Key) == path.Base(configKey)) {
if path.Base(n.Key) != path.Base(configKey) {
nodes = append(nodes, n)
}
}