Skip to content

Commit

Permalink
Merge pull request etcd-io#7801 from heyitsanthony/s1027
Browse files Browse the repository at this point in the history
*: clear redundant return statement warnings (S1027)
  • Loading branch information
Anthony Romano authored Apr 21, 2017
2 parents a9087ee + 14d6ed9 commit a739505
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 5 deletions.
1 change: 0 additions & 1 deletion integration/cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) }
Expand Down
1 change: 0 additions & 1 deletion mvcc/key_index.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 0 additions & 2 deletions pkg/schedule/schedule.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,6 @@ func (f *fifo) Schedule(j Job) {
}
}
f.pendings = append(f.pendings, j)

return
}

func (f *fifo) Pending() int {
Expand Down
1 change: 0 additions & 1 deletion store/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit a739505

Please sign in to comment.