raft: simplify boolean comparison, remove unused

This commit is contained in:
Gyu-Ho Lee
2016-12-09 13:10:54 -08:00
parent f3cb93015c
commit 0c5d1d5641
2 changed files with 1 additions and 11 deletions

View File

@@ -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()