raft: remove a guard that is no longer necessary

release-2.0
Ben Darnell 2014-11-13 15:51:36 -05:00
parent 39eddd8565
commit 0e8ffe9128
1 changed files with 1 additions and 3 deletions

View File

@ -176,9 +176,7 @@ func (l *raftLog) appliedTo(i uint64) {
}
func (l *raftLog) stableTo(i uint64) {
if len(l.unstableEnts) > 0 {
l.unstableEnts = l.unstableEnts[i+1-l.unstable:]
}
l.unstableEnts = l.unstableEnts[i+1-l.unstable:]
l.unstable = i + 1
}