mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
etcdserver: remove unnecessary bool comparison
Fixes 'gosimple' test.
This commit is contained in:
parent
c55519b3a5
commit
c836e37a83
@ -1383,7 +1383,7 @@ func TestPromoteMember(t *testing.T) {
|
||||
if !reflect.DeepEqual(gaction, wactions) {
|
||||
t.Errorf("action = %v, want %v", gaction, wactions)
|
||||
}
|
||||
if cl.Member(1234).IsLearner == true {
|
||||
if cl.Member(1234).IsLearner {
|
||||
t.Errorf("member with id 1234 is not promoted")
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user