From 14d6ed9e5f8a2aaad9a8ba975a00ba33039e3ecc Mon Sep 17 00:00:00 2001 From: Anthony Romano Date: Fri, 21 Apr 2017 14:01:00 -0700 Subject: [PATCH] *: clear redundant return statement warnings (S1027) --- integration/cluster.go | 1 - mvcc/key_index.go | 1 - pkg/schedule/schedule.go | 2 -- store/node.go | 1 - 4 files changed, 5 deletions(-) diff --git a/integration/cluster.go b/integration/cluster.go index b2e0566ac..4e46634da 100644 --- a/integration/cluster.go +++ b/integration/cluster.go @@ -340,7 +340,6 @@ func (c *cluster) waitMembersMatch(t *testing.T, membs []client.Member) { time.Sleep(tickDuration) } } - return } func (c *cluster) WaitLeader(t *testing.T) int { return c.waitLeader(t, c.Members) } diff --git a/mvcc/key_index.go b/mvcc/key_index.go index 983c64e2f..9104f9b2d 100644 --- a/mvcc/key_index.go +++ b/mvcc/key_index.go @@ -222,7 +222,6 @@ func (ki *keyIndex) compact(atRev int64, available map[revision]struct{}) { } // remove the previous generations. ki.generations = ki.generations[i:] - return } func (ki *keyIndex) isEmpty() bool { diff --git a/pkg/schedule/schedule.go b/pkg/schedule/schedule.go index 79c59b012..bf8528b75 100644 --- a/pkg/schedule/schedule.go +++ b/pkg/schedule/schedule.go @@ -88,8 +88,6 @@ func (f *fifo) Schedule(j Job) { } } f.pendings = append(f.pendings, j) - - return } func (f *fifo) Pending() int { diff --git a/store/node.go b/store/node.go index 731327b08..541595535 100644 --- a/store/node.go +++ b/store/node.go @@ -332,7 +332,6 @@ func (n *node) UpdateTTL(expireTime time.Time) { n.ExpireTime = expireTime // push into ttl heap n.store.ttlKeyHeap.push(n) - return } // Compare function compares node index and value with provided ones.