fix S1023 redundant return statement
Signed-off-by: Ken Sipe <kensipe@gmail.com> Kubernetes-commit: 1d795002919675b8cf3bf462b6543fef843b5b54
This commit is contained in:
parent
b60943f03a
commit
0da065589a
|
@ -404,7 +404,6 @@ func TestGOAWAYHTTP1Requests(t *testing.T) {
|
|||
s := httptest.NewUnstartedServer(WithProbabilisticGoaway(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
|
||||
w.WriteHeader(http.StatusOK)
|
||||
w.Write([]byte("hello"))
|
||||
return
|
||||
}), 1))
|
||||
|
||||
http2Options := &http2.Server{}
|
||||
|
|
|
@ -636,7 +636,6 @@ func (meal *cfgMeal) imaginePL(proto *flowcontrol.PriorityLevelConfiguration, re
|
|||
if proto.Spec.Limited != nil {
|
||||
meal.shareSum += float64(proto.Spec.Limited.AssuredConcurrencyShares)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
type immediateRequest struct{}
|
||||
|
|
|
@ -630,7 +630,6 @@ func (qs *queueSet) cancelWait(req *request) {
|
|||
break
|
||||
}
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// selectQueueLocked examines the queues in round robin order and
|
||||
|
|
|
@ -254,7 +254,6 @@ func TestUniformDistribution(t *testing.T) {
|
|||
t.Errorf("Only %v percent of the hands got a central count", goodPct)
|
||||
}
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
func TestDealer_DealIntoHand(t *testing.T) {
|
||||
|
|
|
@ -422,7 +422,6 @@ func TestRequestTimeout(t *testing.T) {
|
|||
|
||||
handler := func(w http.ResponseWriter, r *http.Request) {
|
||||
<-done
|
||||
return
|
||||
}
|
||||
|
||||
// Create and start a simple HTTPS server
|
||||
|
|
Loading…
Reference in New Issue