*: fix naked returns

Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com>
This commit is contained in:
Gyu-Ho Lee
2017-11-10 18:28:57 -08:00
parent 65a606e2e8
commit 75110dd839
21 changed files with 35 additions and 36 deletions

View File

@@ -133,7 +133,7 @@ func (rc *raftNode) entriesToApply(ents []raftpb.Entry) (nents []raftpb.Entry) {
if rc.appliedIndex-firstIdx+1 < uint64(len(ents)) {
nents = ents[rc.appliedIndex-firstIdx+1:]
}
return
return nents
}
// publishEntries writes committed log entries to commit channel and returns