mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
Merge pull request #9969 from Quasilyte/quasilyte/boolExprSimplify
etcdserver/api/v2discovery: simplify !(x == y) to x != y
This commit is contained in:
commit
d1f49d4a40
@ -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)
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user