mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
raft: simplify boolean comparison, remove unused
This commit is contained in:
@@ -128,7 +128,7 @@ func TestRawNodeReadIndex(t *testing.T) {
|
||||
rawNode.raft.readStates = wrs
|
||||
// ensure the ReadStates can be read out
|
||||
hasReady := rawNode.HasReady()
|
||||
if hasReady != true {
|
||||
if !hasReady {
|
||||
t.Errorf("HasReady() returns %t, want %t", hasReady, true)
|
||||
}
|
||||
rd := rawNode.Ready()
|
||||
|
||||
Reference in New Issue
Block a user