delete unreachable code

Signed-off-by: Abirdcfly <fp544037857@gmail.com>
This commit is contained in:
Abirdcfly 2022-07-19 17:23:13 +08:00
parent 525d53bd41
commit 37b920e9f4

View File

@ -1546,7 +1546,6 @@ func testRecvMsgVote(t *testing.T, msgType pb.MessageType) {
msgs := sm.readMessages()
if g := len(msgs); g != 1 {
t.Fatalf("#%d: len(msgs) = %d, want 1", i, g)
continue
}
if g := msgs[0].Type; g != voteRespMsgType(msgType) {
t.Errorf("#%d, m.Type = %v, want %v", i, g, voteRespMsgType(msgType))