wal: simplify boolean return

This commit is contained in:
Gyu-Ho Lee 2016-06-11 10:36:52 -07:00
parent 4aaf7f94cf
commit 3243795522

View File

@ -575,10 +575,7 @@ func mustSync(st, prevst raftpb.HardState, entsnum int) bool {
// currentTerm
// votedFor
// log entries[]
if entsnum != 0 || st.Vote != prevst.Vote || st.Term != prevst.Term {
return true
}
return false
return entsnum != 0 || st.Vote != prevst.Vote || st.Term != prevst.Term
}
func closeAll(rcs ...io.ReadCloser) error {