*: clear redundant return statement warnings (S1027)
This commit is contained in:
@ -340,7 +340,6 @@ func (c *cluster) waitMembersMatch(t *testing.T, membs []client.Member) {
|
|||||||
time.Sleep(tickDuration)
|
time.Sleep(tickDuration)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func (c *cluster) WaitLeader(t *testing.T) int { return c.waitLeader(t, c.Members) }
|
func (c *cluster) WaitLeader(t *testing.T) int { return c.waitLeader(t, c.Members) }
|
||||||
|
@ -222,7 +222,6 @@ func (ki *keyIndex) compact(atRev int64, available map[revision]struct{}) {
|
|||||||
}
|
}
|
||||||
// remove the previous generations.
|
// remove the previous generations.
|
||||||
ki.generations = ki.generations[i:]
|
ki.generations = ki.generations[i:]
|
||||||
return
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func (ki *keyIndex) isEmpty() bool {
|
func (ki *keyIndex) isEmpty() bool {
|
||||||
|
@ -88,8 +88,6 @@ func (f *fifo) Schedule(j Job) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
f.pendings = append(f.pendings, j)
|
f.pendings = append(f.pendings, j)
|
||||||
|
|
||||||
return
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func (f *fifo) Pending() int {
|
func (f *fifo) Pending() int {
|
||||||
|
@ -332,7 +332,6 @@ func (n *node) UpdateTTL(expireTime time.Time) {
|
|||||||
n.ExpireTime = expireTime
|
n.ExpireTime = expireTime
|
||||||
// push into ttl heap
|
// push into ttl heap
|
||||||
n.store.ttlKeyHeap.push(n)
|
n.store.ttlKeyHeap.push(n)
|
||||||
return
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Compare function compares node index and value with provided ones.
|
// Compare function compares node index and value with provided ones.
|
||||||
|
Reference in New Issue
Block a user