fix S1023 redundant return statement

Signed-off-by: Ken Sipe <kensipe@gmail.com>

Kubernetes-commit: 1d795002919675b8cf3bf462b6543fef843b5b54
This commit is contained in:
Ken Sipe 2020-06-25 17:29:42 -05:00 committed by Kubernetes Publisher
parent b60943f03a
commit 0da065589a
5 changed files with 0 additions and 5 deletions

View File

@ -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{}

View File

@ -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{}

View File

@ -630,7 +630,6 @@ func (qs *queueSet) cancelWait(req *request) {
break
}
}
return
}
// selectQueueLocked examines the queues in round robin order and

View File

@ -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) {

View File

@ -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